GeneratedCode
🛈 DocStrings¶
Structured code generation result.
Source code in src/schemez/code_generation/toolset_code_generator.py
explicit_stubs
instance-attribute
¶
Explicit signature function stubs for LLM consumption.
get_client_code
¶
get_client_code(
args_format: ArgsFormat = "explicit",
output_type: OutputType = "implementation",
client_type: ClientType = "http",
) -> str
Generate client code with specified format and type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args_format
|
ArgsFormat
|
Argument format - "model" (with Pydantic models) or "explicit" (function signatures) |
'explicit'
|
output_type
|
OutputType
|
Output type - "stubs" (type stubs) or "implementation" (working client) |
'implementation'
|
client_type
|
ClientType
|
Client type - "http" or "fastmcp" |
'http'
|
Returns:
| Type | Description |
|---|---|
str
|
Formatted client code |