public class Agent extends AbstractModel
header, skipSign
Constructor and Description |
---|
Agent() |
Agent(Agent source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAgentId()
Get AgentID
|
Long |
getAgentMode()
Get 0 自由转交,1 计划与执行
|
Long |
getAgentType()
Get Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
String |
getHandoffDescription()
Get 当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机
|
String[] |
getHandoffs()
Get Agent可转交的子AgentId列表
|
String |
getIconUrl()
Get 插件图标url
|
String |
getInstructions()
Get Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式
|
Boolean |
getIsStartingAgent()
Get 当前Agent是否是启动Agent
|
AgentModelInfo |
getModel()
Get Agent调用LLM时使用的模型配置
|
String |
getName()
Get Agent名称,同一个应用内,Agent名称不能重复
|
AgentPluginInfo[] |
getPlugins()
Get Agent可使用的插件列表
|
AgentToolInfo[] |
getTools()
Get Agent可使用的工具列表
|
String |
getWorkflowId()
Get WorkflowID,非空则当前Agent从workflow转换而来
|
void |
setAgentId(String AgentId)
Set AgentID
|
void |
setAgentMode(Long AgentMode)
Set 0 自由转交,1 计划与执行
|
void |
setAgentType(Long AgentType)
Set Agent类型; 0: 未指定类型; 1: 知识库检索Agent
|
void |
setHandoffDescription(String HandoffDescription)
Set 当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机
|
void |
setHandoffs(String[] Handoffs)
Set Agent可转交的子AgentId列表
|
void |
setIconUrl(String IconUrl)
Set 插件图标url
|
void |
setInstructions(String Instructions)
Set Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式
|
void |
setIsStartingAgent(Boolean IsStartingAgent)
Set 当前Agent是否是启动Agent
|
void |
setModel(AgentModelInfo Model)
Set Agent调用LLM时使用的模型配置
|
void |
setName(String Name)
Set Agent名称,同一个应用内,Agent名称不能重复
|
void |
setPlugins(AgentPluginInfo[] Plugins)
Set Agent可使用的插件列表
|
void |
setTools(AgentToolInfo[] Tools)
Set Agent可使用的工具列表
|
void |
setWorkflowId(String WorkflowId)
Set WorkflowID,非空则当前Agent从workflow转换而来
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Agent()
public Agent(Agent source)
public String getAgentId()
public void setAgentId(String AgentId)
AgentId
- AgentIDpublic String getWorkflowId()
public void setWorkflowId(String WorkflowId)
WorkflowId
- WorkflowID,非空则当前Agent从workflow转换而来public String getName()
public void setName(String Name)
Name
- Agent名称,同一个应用内,Agent名称不能重复public String getIconUrl()
public void setIconUrl(String IconUrl)
IconUrl
- 插件图标urlpublic String getInstructions()
public void setInstructions(String Instructions)
Instructions
- Agent指令;当该Agent被调用时,将作为“系统提示词”使用,描述Agent应执行的操作和响应方式public String getHandoffDescription()
public void setHandoffDescription(String HandoffDescription)
HandoffDescription
- 当Agent作为转交目标时的描述,用于让其他Agent的LLM理解其功能和转交时机public String[] getHandoffs()
public void setHandoffs(String[] Handoffs)
Handoffs
- Agent可转交的子AgentId列表public AgentModelInfo getModel()
public void setModel(AgentModelInfo Model)
Model
- Agent调用LLM时使用的模型配置public AgentToolInfo[] getTools()
public void setTools(AgentToolInfo[] Tools)
Tools
- Agent可使用的工具列表public AgentPluginInfo[] getPlugins()
public void setPlugins(AgentPluginInfo[] Plugins)
Plugins
- Agent可使用的插件列表public Boolean getIsStartingAgent()
public void setIsStartingAgent(Boolean IsStartingAgent)
IsStartingAgent
- 当前Agent是否是启动Agentpublic Long getAgentType()
public void setAgentType(Long AgentType)
AgentType
- Agent类型; 0: 未指定类型; 1: 知识库检索Agentpublic Long getAgentMode()
public void setAgentMode(Long AgentMode)
AgentMode
- 0 自由转交,1 计划与执行Copyright © 2025. All rights reserved.