AS AgentScopeAPI 手册 / API Reference

SubagentInfoOrBuilder

public interface SubagentInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:8–116

定义子智能体信息或构建器契约的接口。位于 io.agentscope.controlplane.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getName、getNameBytes、getDescription、getDescriptionBytes、getToolsList、getToolsCount。

An interface in io.agentscope.controlplane.proto that defines the contract for components that deploys, schedules and serves agents. Declared in io.agentscope.controlplane.proto. Implements com.google.protobuf.MessageOrBuilder.

方法摘要Method Summary

方法Method说明Description
public java.lang.String getName()
获取名称。
`string name = 1;`
public com.google.protobuf.ByteString getNameBytes()
获取名称字节。
`string name = 1;`
public java.lang.String getDescription()
获取 `getDescription`。
`string description = 2;`
public com.google.protobuf.ByteString getDescriptionBytes()
获取 `getDescriptionBytes`。
`string description = 2;`
public java.util.List<java.lang.String> getToolsList()
获取工具列表。
`repeated string tools = 3;`
public int getToolsCount()
获取工具数量。
`repeated string tools = 3;`
public java.lang.String getTools(int index)
获取工具。
`repeated string tools = 3;`
public com.google.protobuf.ByteString getToolsBytes(int index)
获取工具字节。
`repeated string tools = 3;`
public java.lang.String getWorkspaceMode()
获取工作区模式。
``` isolated | shared
public com.google.protobuf.ByteString getWorkspaceModeBytes()
获取工作区模式字节。
``` isolated | shared
public java.lang.String getUrl()
获取URL。
``` remote subagent endpoint, if any
public com.google.protobuf.ByteString getUrlBytes()
获取URL 字节。
``` remote subagent endpoint, if any
public long getInvokeCount()
获取调用数量。
`int64 invoke_count = 6;`
public long getLastInvokedAt()
获取 `getLastInvokedAt`。
``` unix milliseconds

方法详情Method Detail

getName

public java.lang.String getName()

获取名称。

string name = 1;

返回Returns java.lang.String
名称。The name.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:16

getNameBytes

public com.google.protobuf.ByteString getNameBytes()

获取名称字节。

string name = 1;

返回Returns com.google.protobuf.ByteString
字节用于名称。The bytes for name.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:21–22

getDescription

public java.lang.String getDescription()

获取 getDescription。

string description = 2;

返回Returns java.lang.String
返回java.lang.String。The description.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:28

getDescriptionBytes

public com.google.protobuf.ByteString getDescriptionBytes()

获取 getDescriptionBytes。

string description = 2;

返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes for description.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:33–34

getToolsList

public java.util.List<java.lang.String> getToolsList()

获取工具列表。

repeated string tools = 3;

返回Returns java.util.List<java.lang.String>
返回java.util.列出。A list containing the tools.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:40–41

getToolsCount

public int getToolsCount()

获取工具数量。

repeated string tools = 3;

返回Returns int
工具的数量。The count of tools.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:46

getTools

public java.lang.String getTools(int index)

获取工具。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the element to return.
返回Returns java.lang.String
返回java.lang.String。The tools at the given index.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:52

getToolsBytes

public com.google.protobuf.ByteString getToolsBytes(int index)

获取工具字节。

repeated string tools = 3;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index of the value to return.
返回Returns com.google.protobuf.ByteString
返回com.google.protobuf.ByteString。The bytes of the tools at the given index.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:58–59

getWorkspaceMode

public java.lang.String getWorkspaceMode()

获取工作区模式。

isolated | shared string workspace_mode = 4;

返回Returns java.lang.String
返回java.lang.String。The workspaceMode.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:69

getWorkspaceModeBytes

public com.google.protobuf.ByteString getWorkspaceModeBytes()

获取工作区模式字节。

isolated | shared string workspace_mode = 4;

返回Returns com.google.protobuf.ByteString
字节用于 workspaceMode。The bytes for workspaceMode.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:78–79

getUrl

public java.lang.String getUrl()

获取URL。

remote subagent endpoint, if any string url = 5;

返回Returns java.lang.String
返回java.lang.String。The url.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:89

getUrlBytes

public com.google.protobuf.ByteString getUrlBytes()

获取URL 字节。

remote subagent endpoint, if any string url = 5;

返回Returns com.google.protobuf.ByteString
字节用于 URL。The bytes for url.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:98–99

getInvokeCount

public long getInvokeCount()

获取调用数量。

int64 invoke_count = 6;

返回Returns long
返回数值结果。The invokeCount.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:105

getLastInvokedAt

public long getLastInvokedAt()

获取 getLastInvokedAt。

unix milliseconds int64 last_invoked_at = 7;

返回Returns long
返回数值结果。The lastInvokedAt.
源码Source io/agentscope/controlplane/proto/SubagentInfoOrBuilder.java:115
基于官方固定版本源码静态生成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.