cayu.testing.ProcessIsolatedTool
Part of cayu.testing.base. Read the Python API overview and install the required extra.
from cayu.testing import ProcessIsolatedToolExplicit host-side tool executed by Cayu in a disposable POSIX process.
Decorators: @final.
Bases: Tool.
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 |
|---|---|---|
spec |
ToolSpec |
required |
init (method)
Section titled “init (method)”ProcessIsolatedTool.__init__(spec: ToolSpec, *, factory: ProcessIsolatedToolFactoryRef, limits: ProcessIsolatedToolLimits, factory_config: dict[str, Any] | None=None, context_projection: ProcessIsolatedToolContextProjection | None=None, environment: dict[str, str] | None=None) -> Nonename (property)
Section titled “name (property)”ProcessIsolatedTool.name() -> strexecution_profile_identity (property)
Section titled “execution_profile_identity (property)”ProcessIsolatedTool.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)”ProcessIsolatedTool.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)”ProcessIsolatedTool.description() -> strschema (property)
Section titled “schema (property)”ProcessIsolatedTool.schema() -> dict[str, Any]run (method)
Section titled “run (method)”async ProcessIsolatedTool.run(ctx: ToolContext, args: dict[str, Any]) -> ToolResultfactory (property)
Section titled “factory (property)”ProcessIsolatedTool.factory() -> ProcessIsolatedToolFactoryReflimits (property)
Section titled “limits (property)”ProcessIsolatedTool.limits() -> ProcessIsolatedToolLimitscontext_projection (property)
Section titled “context_projection (property)”ProcessIsolatedTool.context_projection() -> ProcessIsolatedToolContextProjectionfactory_config_copy (method)
Section titled “factory_config_copy (method)”ProcessIsolatedTool.factory_config_copy() -> dict[str, Any]environment_copy (method)
Section titled “environment_copy (method)”ProcessIsolatedTool.environment_copy() -> dict[str, str]