fabricatio_tool.config
Module containing configuration classes for fabricatio-tool.
Attributes
Classes
Configuration for check modules, imports, and calls. |
|
Configuration for a single MCP service instance. |
|
Configuration for fabricatio-tool. |
Module Contents
- class fabricatio_tool.config.CheckConfigModel(/, **data: Any)
Bases:
pydantic.BaseModelConfiguration for check modules, imports, and calls.
- mode: Literal['whitelist', 'blacklist'] = 'whitelist'
The mode to use for checking. Can be either “whitelist” or “blacklist”.
- Type:
- class fabricatio_tool.config.ServiceConfig
Bases:
TypedDictConfiguration for a single MCP service instance.
- type: Literal['stdio', 'sse', 'stream', 'worker']
The transport protocol type (stdio, sse, stream, worker), default is stdio.
- class fabricatio_tool.config.ToolConfig(/, **data: Any)
Bases:
pydantic.BaseModelConfiguration for fabricatio-tool.
- draft_tool_usage_code_template: str = 'built-in/draft_tool_usage_code'
The name of the draft tool usage code template which will be used to draft tool usage code.
- check_modules: CheckConfigModel = None
Modules that are forbidden/allowed to be imported.
- check_imports: CheckConfigModel = None
Imports that are forbidden/allowed to be used.
- check_calls: CheckConfigModel = None
Calls that are forbidden/allowed to be used.
- mcp_servers: Dict[str, ServiceConfig] = None
MCP servers that are allowed to be used.
- fabricatio_tool.config.tool_config