A rate-limited connection factory for a client to a swarm, returning a function to send throttled messages.
This factory extends makeConnection by adding rate-limiting capabilities, throttling message sends based on the configured delay.
If the rate limit is exceeded, it warns and returns an empty result instead of throwing an error.
Optional__namedParameters: Partial<IMakeConnectionConfig>A scheduled connection factory for a client to a swarm, returning a function to send delayed messages.
This factory extends makeConnection by adding scheduling capabilities, delaying message sends based on the configured delay.
It commits messages to the agent's history immediately via commitUserMessage and sends them after the delay if the session remains active.
Optional__namedParameters: Partial<IMakeConnectionConfig>
A connection factory for establishing a client connection to a swarm, returning a function to send messages.
This factory creates a queued connection to the swarm, allowing the client to send messages to the active agent. It is designed for real-time communication, leveraging the session public service for message handling.
Throws
If swarm or session validation fails, or if the connection process encounters an error.
Example