What the TS participant SDK provides
AgentRelay.nodes (packages/sdk/src/agent-relay.ts) exposes RelayMessaging['nodes'] (packages/sdk/src/messaging/types.ts, readonly nodes):
list(options?): Promise<RelayNode[]> — query fleet nodes.
get(name): Promise<RelayNode | null> — fetch a single node by name.
What the Swift AgentRelaySDK lacks
AgentClient has no node surface. There is no way to enumerate fleet nodes or look one up by name.
Proposed Swift API sketch
public struct RelayNode: Decodable, Sendable {}
extension AgentClient {
public func nodes(/* filters */) async throws -> [RelayNode]
public func node(_ name: String) async throws -> RelayNode?
}
Part of bringing the Swift AgentRelaySDK to parity with the TS participant SDK (follow-up to #1143 / #1147).
What the TS participant SDK provides
AgentRelay.nodes(packages/sdk/src/agent-relay.ts) exposesRelayMessaging['nodes'](packages/sdk/src/messaging/types.ts,readonly nodes):list(options?): Promise<RelayNode[]>— query fleet nodes.get(name): Promise<RelayNode | null>— fetch a single node by name.What the Swift
AgentRelaySDKlacksAgentClienthas no node surface. There is no way to enumerate fleet nodes or look one up by name.Proposed Swift API sketch
Part of bringing the Swift
AgentRelaySDKto parity with the TS participant SDK (follow-up to #1143 / #1147).