AgentRequestOptions
public class AgentRequestOptions
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:22–62智能体请求选项,保存相关配置项。位于 io.agentscope.core.a2a.server.executor.runner 包。核心成员包括 getTaskId、setTaskId、getSessionId、setSessionId、getUserId、setUserId。
The options for each agent requests, such as taskId, sessionId or userId of requests.
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getTaskId() | 获取任务标识。 Returns the task id. |
public void setTaskId(String taskId) | 设置任务标识。 Sets the task id. |
public String getSessionId() | 获取会话标识。 Returns the session id. |
public void setSessionId(String sessionId) | 设置会话标识。 Sets the session id. |
public String getUserId() | 获取用户标识。 Returns the user id. |
public void setUserId(String userId) | 设置用户标识。 Sets the user id. |
方法详情Method Detail
getTaskId
public String getTaskId()
获取任务标识。
Returns the task id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:39–41setTaskId
public void setTaskId(String taskId)
设置任务标识。
Sets the task id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
taskId | String | 任务标识(类型 `String`)。The task id. |
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:43–45getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:47–49setSessionId
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:51–53getUserId
public String getUserId()
获取用户标识。
Returns the user id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:55–57setUserId
public void setUserId(String userId)
设置用户标识。
Sets the user id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
userId | String | 用户标识(类型 `String`)。The user id. |
源码Source
io/agentscope/core/a2a/server/executor/runner/AgentRequestOptions.java:59–61