AS AgentScopeAPI 手册 / API Reference

TransportProperties

public record TransportProperties( String transportType, String host, Integer port, String path, boolean supportTls, Map<String, Object> extra)
源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

承载传输层属性数据的记录类型。位于 io.agentscope.core.a2a.server.transport 包。核心成员包括 transportType、host、port、path、supportTls、extra。

Properties for transports.

Usage for auto-generate io.a2a.spec.AgentCard and do register to A2A Registries.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
transportTypeString
执行传输层类型相关操作。
Performs the transport type operation.
hostString
执行 `host` 方法。
Performs the host operation.
portInteger
执行 `port` 方法。
Performs the port operation.
pathString
执行路径相关操作。
Performs the path operation.
supportTlsboolean
执行 `supportTls` 方法。
Performs the support tls operation.
extraMap<String, Object>
执行 `extra` 方法。
Performs the extra operation.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.core.a2a.server.transport that supports discovery, delegation and collaboration between agents.

方法摘要Method Summary

方法Method说明Description
public static Builder builder(String transportType)
static
返回构建器实例。
Performs the builder operation.

记录组件详情Record Component Detail

transportType

String transportType

执行传输层类型相关操作。

Performs the transport type operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

host

String host

执行 host 方法。

Performs the host operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

port

Integer port

执行 port 方法。

Performs the port operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

path

String path

执行路径相关操作。

Performs the path operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

supportTls

boolean supportTls

执行 supportTls 方法。

Performs the support tls operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

extra

Map<String, Object> extra

执行 extra 方法。

Performs the extra operation.

源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:27–92

方法详情Method Detail

builder

public static Builder builder(String transportType)
static

返回构建器实例。

Performs the builder operation.

参数Parameters
名称Name类型Type说明Description
transportTypeString传输层类型(类型 `String`)。The transport type.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/core/a2a/server/transport/TransportProperties.java:35–37

嵌套类详情Nested Class Detail

Builder

public static class Builder

构建器,用于构建并配置目标实例。位于 io.agentscope.core.a2a.server.transport 包。核心成员包括 host、port、path、supportTls、extra、build。

A class in io.agentscope.core.a2a.server.transport that supports discovery, delegation and collaboration between agents. Declared in io.agentscope.core.a2a.server.transport.

基于官方固定版本源码静态生成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.