types
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ToolHandler schemez.tool_executor.types Protocol for user-provided tool handler. |
🛈 DocStrings¶
Type definitions for tool executor.
ToolHandler
¶
Bases: Protocol
Protocol for user-provided tool handler.
Source code in src/schemez/tool_executor/types.py
__call__
async
¶
Process a tool call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method_name
|
str
|
Name of the tool being called (e.g., "get_weather") |
required |
input_props
|
BaseModel
|
Validated input model instance |
required |
Returns:
| Type | Description |
|---|---|
str
|
String result from the tool execution |
Raises:
| Type | Description |
|---|---|
Exception
|
If tool execution fails |