AS AgentScopeAPI 手册 / API Reference

AgentDataPlaneServiceStub

public static final class AgentDataPlaneServiceStub extends io.grpc.stub.AbstractAsyncStub<AgentDataPlaneServiceStub>
源码Source io/agentscope/controlplane/proto/AgentDataPlaneServiceGrpc.java:147–167

智能体数据面服务存根,承载智能体的部署、调度与服务化运行。位于 io.agentscope.controlplane.proto 包,继承自 io.grpc.stub.AbstractAsyncStub<AgentDataPlaneServiceStub>。核心成员包括 build、connect。

A stub to allow clients to do asynchronous rpc calls to service AgentDataPlaneService.


AgentDataPlaneService is the ASDP gRPC service.
Single bidirectional stream multiplexing all message types (analogous to xDS ADS).

方法摘要Method Summary

方法Method说明Description
protected AgentDataPlaneServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
构建并返回最终实例。
Creates and returns an instance.
public io.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Upstream> connect(io.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Downstream> responseObserver)
建立连接并完成初始化。
Performs the connect operation.

方法详情Method Detail

build

protected AgentDataPlaneServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)

构建并返回最终实例。

Creates and returns an instance.

参数Parameters
名称Name类型Type说明Description
channelio.grpc.Channel渠道(类型 `io.grpc.Channel`)。The channel.
callOptionsio.grpc.CallOptions调用选项(类型 `io.grpc.CallOptions`)。The call options.
返回Returns AgentDataPlaneServiceStub
返回AgentDataPlaneServiceStub。Returns agent data plane service stub.
源码Source io/agentscope/controlplane/proto/AgentDataPlaneServiceGrpc.java:154–158

connect

public io.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Upstream> connect(io.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Downstream> responseObserver)

建立连接并完成初始化。

Performs the connect operation.

参数Parameters
名称Name类型Type说明Description
responseObserverio.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Downstream>响应观察者(类型 `io.grpc.stub.StreamObserver`)。The response observer.
返回Returns io.grpc.stub.StreamObserver<io.agentscope.controlplane.proto.Upstream>
返回io.gRPC.存根.StreamObserver。Returns io grpc stub stream observer.
源码Source io/agentscope/controlplane/proto/AgentDataPlaneServiceGrpc.java:162–166
基于官方固定版本源码静态生成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.