AS AgentScopeAPI 手册 / API Reference

SessionReportOrBuilder

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

定义会话报告或构建器契约的接口。位于 io.agentscope.controlplane.proto 包,实现 com.google.protobuf.MessageOrBuilder。核心成员包括 getSessionsList、getSessions、getSessionsCount、getSessionsOrBuilderList、getSessionsOrBuilder。

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.util.List<io.agentscope.controlplane.proto.SessionSnapshot> getSessionsList()
获取会话列表。
`repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;`
public io.agentscope.controlplane.proto.SessionSnapshot getSessions(int index)
获取会话。
`repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;`
public int getSessionsCount()
获取会话数量。
`repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;`
public java.util.List<? extends io.agentscope.controlplane.proto.SessionSnapshotOrBuilder> getSessionsOrBuilderList()
获取会话或构建器列表。
`repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;`
public io.agentscope.controlplane.proto.SessionSnapshotOrBuilder getSessionsOrBuilder(int index)
获取会话或构建器。
`repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;`

方法详情Method Detail

getSessionsList

public java.util.List<io.agentscope.controlplane.proto.SessionSnapshot> getSessionsList()

获取会话列表。

repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;

返回Returns java.util.List<io.agentscope.controlplane.proto.SessionSnapshot>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/controlplane/proto/SessionReportOrBuilder.java:15–16

getSessions

public io.agentscope.controlplane.proto.SessionSnapshot getSessions(int index)

获取会话。

repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionSnapshot
返回io.agentscope.controlplane.协议.SessionSnapshot。Returns io agentscope controlplane proto session snapshot.
源码Source io/agentscope/controlplane/proto/SessionReportOrBuilder.java:20

getSessionsCount

public int getSessionsCount()

获取会话数量。

repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/controlplane/proto/SessionReportOrBuilder.java:24

getSessionsOrBuilderList

public java.util.List<? extends io.agentscope.controlplane.proto.SessionSnapshotOrBuilder> getSessionsOrBuilderList()

获取会话或构建器列表。

repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;

返回Returns java.util.List<? extends io.agentscope.controlplane.proto.SessionSnapshotOrBuilder>
返回java.util.列出。Returns java util list.
源码Source io/agentscope/controlplane/proto/SessionReportOrBuilder.java:28–29

getSessionsOrBuilder

public io.agentscope.controlplane.proto.SessionSnapshotOrBuilder getSessionsOrBuilder(int index)

获取会话或构建器。

repeated .agentscope.protocol.v1.SessionSnapshot sessions = 1;

参数Parameters
名称Name类型Type说明Description
indexint索引(类型 `int`)。The index.
返回Returns io.agentscope.controlplane.proto.SessionSnapshotOrBuilder
返回io.agentscope.controlplane.协议.SessionSnapshotOrBuilder。Returns io agentscope controlplane proto session snapshot or builder.
源码Source io/agentscope/controlplane/proto/SessionReportOrBuilder.java:33–34
基于官方固定版本源码静态生成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.