DelegateTool#

class scikitplot.agent.DelegateTool(name, function, description='', parameters=None, effect=ToolEffect.READ, scopes=frozenset({}), cost=1.0, idempotent=None, child=None, child_limits=None)[source]#

A tool whose call is a bounded run of child.

Build it with delegate.

Parameters:
child: Any = None#
child_limits: Limits | None = None#
cost: float = 1.0#
describe()[source]#

Return what a planner needs to call this tool, as JSON.

Return type:

dict[str, Any]

description: str = ''#
effect: ToolEffect = 'read'[source]#
function: Callable[[...], Any][source]#
idempotent: bool | None = None#
name: str[source]#
parameters: Mapping[str, Any] | None = None#
scopes: frozenset[str] = frozenset({})#