AS AgentScopeAPI 手册 / API Reference

ExtendedModel

public interface ExtendedModel
源码Source io/agentscope/core/tool/ExtendedModel.java:27–84

定义 Extended 模型契约的接口。位于 io.agentscope.core.tool 包。核心成员包括 getAdditionalProperties、getAdditionalRequired、mergeWithBaseSchema。

Interface for extended model that adds properties to tool parameters.

方法摘要Method Summary

方法Method说明Description
public Map<String, Object> getAdditionalProperties()
获取 `getAdditionalProperties`。
Get the additional properties to merge into base schema.
public List<String> getAdditionalRequired()
获取 `getAdditionalRequired`。
Get the additional required fields.
default public Map<String, Object> mergeWithBaseSchema(Map<String, Object> baseParameters)
default
合并使用基类模式。
Merge this extended model with base schema from tool.

方法详情Method Detail

getAdditionalProperties

public Map<String, Object> getAdditionalProperties()

获取 getAdditionalProperties。

Get the additional properties to merge into base schema.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/core/tool/ExtendedModel.java:32

getAdditionalRequired

public List<String> getAdditionalRequired()

获取 getAdditionalRequired。

Get the additional required fields.

返回Returns List<String>
返回列出。Returns list.
源码Source io/agentscope/core/tool/ExtendedModel.java:37

mergeWithBaseSchema

default public Map<String, Object> mergeWithBaseSchema(Map<String, Object> baseParameters)
default

合并使用基类模式。

Merge this extended model with base schema from tool.

参数Parameters
名称Name类型Type说明Description
baseParametersMap<String, Object>基类参数(类型 `Map`)。Base parameter schema from AgentTool
返回Returns Map<String, Object>
返回映射。Merged schema
抛出Throws
  • IllegalStateException 可能抛出 `IllegalStateException`。if properties conflict
源码Source io/agentscope/core/tool/ExtendedModel.java:46–83
基于官方固定版本源码静态生成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.