← Về thư mục
- Tool · class · L28-L290 — class Tool
- init · method · L105-L159 — def init( self, name: str | None = None, host_method: str | None = None, description: str | None = None, parameters: dict | None = None, read_only: bool | None = None, writes_files: bool | None = None, needs_network: bool | None = None, mutates_cwd: bool | None = None, dangerous: bool | None = None, output_limit: int | None = None, requires_approval: bool | None = None, permission_target_key: str | None = None, permission_target_default: str | None = None, secret_path_key: str | None = None, screen_untrusted_output: bool | None = None, side_effect_class: str | None = None, resource_key_prefix: str | None = None, resource_target_key: str | None = None, resource_target_default: str | None = None, unknown_properties: str | None = None, provider_strict: bool | None = None, ) -> None: # No arguments snapshots the concrete subclass's class declarations.
- setattr · method · L161-L164 — def setattr(self, name: str, value: Any) -> None
- repr · method · L166-L170 — def repr(self) -> str
- writes_files_for · method · L172-L176 — def writes_files_for(self, runtime: Any) -> bool
- read_only_for · method · L178-L182 — def read_only_for(self, runtime: Any) -> bool
- side_effect_class_for · method · L184-L188 — def side_effect_class_for(self, runtime: Any) -> str
- eq · method · L190-L196 — def eq(self, other: object) -> bool
- invoke · method · L198-L204 — def invoke(self, dispatcher: Any, arguments: dict) -> Any
- execute · method · L206-L208 — def execute(self, context: Any, arguments: dict) -> Any
- native_precheck · method · L210-L212 — def native_precheck(self, arguments: dict) -> str | None
- permission_target · method · L214-L227 — def permission_target(self, arguments: Any) -> str
- secret_path · method · L229-L234 — def secret_path(self, arguments: Any) -> str | None
- resource_keys · method · L236-L247 — def resource_keys(self, arguments: Any) -> tuple[str, ...]
- input_schema · method · L249-L253 — def input_schema(self) -> dict
- validation_error · method · L255-L264 — def validation_error(self, arguments: Any) -> str | None
- supports_provider_strict · method · L266-L271 — def supports_provider_strict(self) -> bool
- signature_line · method · L273-L278 — def signature_line(self) -> str
- schema · method · L280-L290 — def schema(self) -> dict