← Về thư mục
- _canonical_json · function · L103-L109 — def _canonical_json(value: Any) -> str
- _manifest_hash · function · L112-L113 — def _manifest_hash(value: Mapping[str, Any]) -> str
- _scoped_manifest_core · function · L116-L142 — def _scoped_manifest_core( *, manifest: "DynamicToolManifest", scope: str, scope_id: str, source_project_id: str, source_root_frame_id: str, ) -> dict[str, Any]
- validate_dynamic_source · function · L145-L194 — def validate_dynamic_source(source: str) -> tuple[str, ...]
- DynamicToolManifest · class · L198-L248 — class DynamicToolManifest
- expired · method · L219-L220 — def expired(self) -> bool
- record · method · L222-L248 — def record(self) -> dict[str, Any]
- DynamicToolWorker · class · L292-L373 — class DynamicToolWorker
- init · method · L295-L306 — def init( self, workspace: str | Path, *, sandbox_factory: Callable[[str | Path], KernelSandbox] | None = None, timeout_s: float = 10.0, ) -> None
- invoke · method · L308-L373 — def invoke( self, manifest: DynamicToolManifest, arguments: Mapping[str, Any] ) -> Any
- DynamicToolRegistry · class · L379-L1092 — class DynamicToolRegistry
- init · method · L388-L430 — def init( self, session_id: str, workspace: str | Path, storage_dir: str | Path, *, project_id: str | None = None, scope_storage_dir: str | Path | None = None, worker: DynamicToolWorker | None = None, approval: Approval | None = None, clock: Callable[[], float] = time.time, ) -> None
- define · method · L432-L487 — def define(self, spec: Mapping[str, Any]) -> DynamicToolManifest
- invoke · method · L489-L493 — def invoke(self, name: str, arguments: Mapping[str, Any]) -> Any
- invoke_manifest · method · L495-L513 — def invoke_manifest( self, manifest: DynamicToolManifest, arguments: Mapping[str, Any], ) -> Any
- get · method · L515-L518 — def get(self, name: str) -> DynamicToolManifest | None
- session_manifest · method · L520-L522 — def session_manifest(self, name: str) -> DynamicToolManifest | None
- tools · method · L524-L530 — def tools(self) -> tuple["ProxyDynamicTool", ...]
- promote · method · L532-L589 — def promote( self, name: str, scope: str, *, approved: bool = False, ) -> DynamicToolManifest
- activate · method · L591-L613 — def activate( self, name: str, scope: str, manifest_id: str, *, approved: bool = False, ) -> DynamicToolManifest
- rollback · method · L615-L641 — def rollback( self, name: str, scope: str, *, approved: bool = False, ) -> DynamicToolManifest
- versions · method · L643-L694 — def versions( self, *, name: str | None = None, scope: str | None = None, ) -> dict[str, Any]
- purge_expired · method · L696-L707 — def purge_expired(self) -> int
- _write_manifest · method · L709-L718 — def _write_manifest(self, manifest: DynamicToolManifest) -> None
- _load_session_manifests · method · L720-L792 — def _load_session_manifests(self) -> None
- _refresh_scoped_manifests · method · L794-L812 — def _refresh_scoped_manifests(self) -> None
- _rebuild_effective · method · L814-L821 — def _rebuild_effective(self) -> None: # Later updates win. Session definitions intentionally shadow promoted # methods without mutating or deactivating the durable lower scope.
- _scoped_versions · method · L823-L845 — def _scoped_versions( self, scope: str, scope_id: str, *, name: str | None = None, ) -> list[DynamicToolManifest]
- _scoped_manifest_from_record · method · L847-L937 — def _scoped_manifest_from_record( self, record: Mapping[str, Any] ) -> DynamicToolManifest
- _active_ids · method · L939-L966 — def _active_ids( self, scope: str, scope_id: str, versions: Iterable[DynamicToolManifest], ) -> tuple[dict[str, str], list[str]]
- _scoped_version · method · L968-L988 — def _scoped_version( self, name: str, scope: str, scope_id: str, manifest_id: str, ) -> DynamicToolManifest
- _scope_id · method · L990-L997 — def _scope_id(self, scope: str) -> str
- _record_load_error · method · L999-L1002 — def _record_load_error(self, message: str) -> None
- _record_load_errors · method · L1004-L1006 — def _record_load_errors(self, messages: Iterable[str]) -> None
- _public_version · method · L1008-L1030 — def _public_version(self, manifest: DynamicToolManifest) -> dict[str, Any]
- _public_audit_event · method · L1032-L1037 — def _public_audit_event(self, event: Mapping[str, Any]) -> dict[str, Any]
- _schema · method · L1040-L1052 — def _schema(value: Any, name: str) -> dict[str, Any]
- _validation_error · method · L1055-L1057 — def _validation_error(value: Any, schema: Mapping[str, Any]) -> str | None
- _minimal_smoke_args · method · L1060-L1082 — def _minimal_smoke_args(schema: Mapping[str, Any]) -> dict[str, Any]
- _ttl · method · L1085-L1092 — def _ttl(value: Any) -> float
- ProxyDynamicTool · class · L1095-L1136 — class ProxyDynamicTool(Tool)
- init · method · L1104-L1127 — def init( self, manifest: DynamicToolManifest, registry: DynamicToolRegistry ) -> None
- execute · method · L1129-L1131 — def execute(self, context: Any, arguments: dict) -> Any
- input_schema · method · L1133-L1136 — def input_schema(self) -> dict