类class
agentscope.toolParamsBase
class ParamsBase(BaseModel)
源码Source
agentscope/tool/_base.py:29–39参数基类,让智能体以受控方式调用外部能力。位于 agentscope.tool 包。核心成员包括 model_json_schema。
A base class for tool parameters that remove the title field from the exported JSON schema. Declared in agentscope.tool.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
def model_json_schema(*args: Any, **kwargs: Any) -> dict | 执行模型 JSON 模式相关操作。 An override implementation to remove the title field from the exported schema. |
方法详情Method Detail
model_json_schema
def model_json_schema(*args: Any, **kwargs: Any) -> dict
执行模型 JSON 模式相关操作。
An override implementation to remove the title field from the exported schema.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
args | Any | 参数(类型 `Any`)。The args. |
kwargs | Any | 关键字参数(类型 `Any`)。The kwargs. |
dict
返回dict。Returns dict.
源码Source
agentscope/tool/_base.py:35–39