Skip to content

Swift SDK: nodes (fleet node query) (TS participant SDK parity) #1154

Description

@willwashburn

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions