AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:254–368

构建器,用于构建并配置目标实例。位于 io.agentscope.extensions.rocketmq.a2a.config 包。核心成员包括 rocketMQEndpoint、rocketMQNamespace、bizTopic、bizConsumerGroup、accessKey、secretKey。

Builder class for constructing RocketMQA2aConfig instances.

方法摘要Method Summary

方法Method说明Description
public Builder rocketMQEndpoint(String rocketMQEndpoint)
设置RocketMQ 端点。
Sets the RocketMQ endpoint.
public Builder rocketMQNamespace(String rocketMQNamespace)
设置命名空间。
Sets the namespace.
public Builder bizTopic(String bizTopic)
设置该配置项。
Sets the business topic.
public Builder bizConsumerGroup(String bizConsumerGroup)
设置该配置项。
Sets the business consumer group.
public Builder accessKey(String accessKey)
设置访问密钥。
Sets the access key.
public Builder secretKey(String secretKey)
设置密钥密钥。
Sets the secret key.
public Builder workAgentResponseTopic(String workAgentResponseTopic)
设置响应主题。
Sets the response topic.
public Builder workAgentResponseGroupId(String workAgentResponseGroupId)
设置响应消费者组。
Sets the response consumer group.
public RocketMQA2aConfig build()
构建并返回最终实例。
Builds and returns the RocketMQA2aConfig instance.

方法详情Method Detail

rocketMQEndpoint

public Builder rocketMQEndpoint(String rocketMQEndpoint)

设置RocketMQ 端点。

Sets the RocketMQ endpoint.

参数Parameters
名称Name类型Type说明Description
rocketMQEndpointString端点。the endpoint.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:270–273

rocketMQNamespace

public Builder rocketMQNamespace(String rocketMQNamespace)

设置命名空间。

Sets the namespace.

参数Parameters
名称Name类型Type说明Description
rocketMQNamespaceString命名空间。the namespace.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:281–284

bizTopic

public Builder bizTopic(String bizTopic)

设置该配置项。

Sets the business topic.

参数Parameters
名称Name类型Type说明Description
bizTopicString主题。the topic.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:292–295

bizConsumerGroup

public Builder bizConsumerGroup(String bizConsumerGroup)

设置该配置项。

Sets the business consumer group.

参数Parameters
名称Name类型Type说明Description
bizConsumerGroupString消费者组。the consumer group.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:303–306

accessKey

public Builder accessKey(String accessKey)

设置访问密钥。

Sets the access key.

参数Parameters
名称Name类型Type说明Description
accessKeyString访问密钥。the access key.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:314–317

secretKey

public Builder secretKey(String secretKey)

设置密钥密钥。

Sets the secret key.

参数Parameters
名称Name类型Type说明Description
secretKeyString密钥密钥。the secret key.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:325–328

workAgentResponseTopic

public Builder workAgentResponseTopic(String workAgentResponseTopic)

设置响应主题。

Sets the response topic.

参数Parameters
名称Name类型Type说明Description
workAgentResponseTopicString响应主题。the response topic.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:336–339

workAgentResponseGroupId

public Builder workAgentResponseGroupId(String workAgentResponseGroupId)

设置响应消费者组。

Sets the response consumer group.

参数Parameters
名称Name类型Type说明Description
workAgentResponseGroupIdString消费者组。the consumer group.
返回Returns Builder
返回当前实例,以支持链式调用。this builder.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:347–350

build

public RocketMQA2aConfig build()

构建并返回最终实例。

Builds and returns the RocketMQA2aConfig instance.

返回Returns RocketMQA2aConfig
返回RocketMQA2aConfig。the constructed config.
源码Source io/agentscope/extensions/rocketmq/a2a/config/RocketMQA2aConfig.java:357–367
基于官方固定版本源码静态生成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.