AS AgentScopeAPI 手册 / API Reference
类class agentscope.tool

ParamsBase

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
argsAny参数(类型 `Any`)。The args.
kwargsAny关键字参数(类型 `Any`)。The kwargs.
返回Returns dict
返回dict。Returns dict.
源码Source agentscope/tool/_base.py:35–39
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.