cayu.tools.knowledge
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
ListKnowledgeTool
Section titled “ListKnowledgeTool”from cayu.tools import ListKnowledgeToolBases: Tool.
init (method)
Section titled “init (method)”ListKnowledgeTool.__init__(spec: ToolSpec | None=None) -> Nonename (property)
Section titled “name (property)”ListKnowledgeTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”ListKnowledgeTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn the stable behavior declaration frozen with this tool’s spec.
retain_arguments_for_model (property)
Section titled “retain_arguments_for_model (property)”ListKnowledgeTool.retain_arguments_for_model() -> boolRetain bounded redacted original inputs privately for the same profile.
Independent of audit publication; oversized and compacted-away inputs may be omitted. This does not grant knowledge read or activation rights.
description (property)
Section titled “description (property)”ListKnowledgeTool.description() -> strschema (property)
Section titled “schema (property)”ListKnowledgeTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async ListKnowledgeTool.run(ctx: ToolContext, args: dict) -> ToolResultRelease source · Runtime guarantees · Capability guides
ReadKnowledgeTool
Section titled “ReadKnowledgeTool”from cayu.tools import ReadKnowledgeToolBases: Tool.
init (method)
Section titled “init (method)”ReadKnowledgeTool.__init__(spec: ToolSpec | None=None) -> Nonename (property)
Section titled “name (property)”ReadKnowledgeTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”ReadKnowledgeTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn the stable behavior declaration frozen with this tool’s spec.
retain_arguments_for_model (property)
Section titled “retain_arguments_for_model (property)”ReadKnowledgeTool.retain_arguments_for_model() -> boolRetain bounded redacted original inputs privately for the same profile.
Independent of audit publication; oversized and compacted-away inputs may be omitted. This does not grant knowledge read or activation rights.
description (property)
Section titled “description (property)”ReadKnowledgeTool.description() -> strschema (property)
Section titled “schema (property)”ReadKnowledgeTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async ReadKnowledgeTool.run(ctx: ToolContext, args: dict) -> ToolResultRelease source · Runtime guarantees · Capability guides
RememberKnowledgePolicy
Section titled “RememberKnowledgePolicy”from cayu.tools import RememberKnowledgePolicyApplication policy for model-authored knowledge writes.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
governance |
KnowledgeGovernanceConfig |
Field(default_factory=KnowledgeGovernanceConfig) |
default_namespace |
str |
DEFAULT_KNOWLEDGE_NAMESPACE |
default_visibility |
KnowledgeVisibility |
KnowledgeVisibility.GLOBAL |
allowed_kinds |
tuple[str, ...] | None |
None |
default_kind |
str |
'fact' |
default_created_by |
str |
'model' |
require_labels |
dict[str, str] |
Field(default_factory=dict) |
validate_clean_nonblank_fields (method)
Section titled “validate_clean_nonblank_fields (method)”RememberKnowledgePolicy.validate_clean_nonblank_fields(value: str, info) -> strvalidate_default_created_by (method)
Section titled “validate_default_created_by (method)”RememberKnowledgePolicy.validate_default_created_by(value: object) -> strvalidate_allowed_kinds (method)
Section titled “validate_allowed_kinds (method)”RememberKnowledgePolicy.validate_allowed_kinds(value) -> tuple[str, ...] | Nonecopy_required_labels (method)
Section titled “copy_required_labels (method)”RememberKnowledgePolicy.copy_required_labels(value) -> dict[str, str]copy_governance (method)
Section titled “copy_governance (method)”RememberKnowledgePolicy.copy_governance(value: object) -> objectvalidate_status_policy (method)
Section titled “validate_status_policy (method)”RememberKnowledgePolicy.validate_status_policy() -> RememberKnowledgePolicyRelease source · Runtime guarantees · Capability guides
RememberKnowledgeTool
Section titled “RememberKnowledgeTool”from cayu.tools import RememberKnowledgeToolBases: Tool.
init (method)
Section titled “init (method)”RememberKnowledgeTool.__init__(spec: ToolSpec | None=None, *, policy: RememberKnowledgePolicy | dict[str, Any] | None=None, activation_policy: KnowledgeActivationPolicy | None=None, max_text_bytes: int=DEFAULT_REMEMBER_KNOWLEDGE_MAX_BYTES, chunk_target_bytes: int=DEFAULT_REMEMBER_KNOWLEDGE_CHUNK_TARGET_BYTES, max_chunks: int=DEFAULT_REMEMBER_KNOWLEDGE_MAX_CHUNKS) -> Nonename (property)
Section titled “name (property)”RememberKnowledgeTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”RememberKnowledgeTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn the stable behavior declaration frozen with this tool’s spec.
retain_arguments_for_model (property)
Section titled “retain_arguments_for_model (property)”RememberKnowledgeTool.retain_arguments_for_model() -> booldescription (property)
Section titled “description (property)”RememberKnowledgeTool.description() -> strschema (property)
Section titled “schema (property)”RememberKnowledgeTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async RememberKnowledgeTool.run(ctx: ToolContext, args: dict) -> ToolResultaclose (method)
Section titled “aclose (method)”async RememberKnowledgeTool.aclose(*, timeout_s: float=10.0) -> boolSeal and drain publications retained beyond their invoking callers.
aenter (method)
Section titled “aenter (method)”async RememberKnowledgeTool.__aenter__() -> RememberKnowledgeToolaexit (method)
Section titled “aexit (method)”async RememberKnowledgeTool.__aexit__(*_exc_info: object) -> NoneRelease source · Runtime guarantees · Capability guides
SearchKnowledgeTool
Section titled “SearchKnowledgeTool”from cayu.tools import SearchKnowledgeToolBases: Tool.
init (method)
Section titled “init (method)”SearchKnowledgeTool.__init__(spec: ToolSpec | None=None, *, allow_score_override: bool=False, auto_min_score: float | None=DEFAULT_AUTO_SEMANTIC_MIN_SCORE, default_namespace: str=DEFAULT_KNOWLEDGE_NAMESPACE) -> Nonename (property)
Section titled “name (property)”SearchKnowledgeTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”SearchKnowledgeTool.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn the stable behavior declaration frozen with this tool’s spec.
retain_arguments_for_model (property)
Section titled “retain_arguments_for_model (property)”SearchKnowledgeTool.retain_arguments_for_model() -> boolRetain bounded redacted original inputs privately for the same profile.
Independent of audit publication; oversized and compacted-away inputs may be omitted. This does not grant knowledge read or activation rights.
description (property)
Section titled “description (property)”SearchKnowledgeTool.description() -> strschema (property)
Section titled “schema (property)”SearchKnowledgeTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async SearchKnowledgeTool.run(ctx: ToolContext, args: dict) -> ToolResult