Optional__namedParameters: Partial<Omit<ISessionConfig, "delay">>Creates a rate-limited session for a client and swarm, throttling content execution.
This factory extends session by adding rate-limiting capabilities, throttling complete calls based on the configured delay.
If the rate limit is exceeded, it warns and returns an empty string instead of throwing an error.
Optional__namedParameters: Partial<ISessionConfig>Creates a scheduled session for a client and swarm, delaying content execution.
This factory extends session by adding scheduling capabilities, delaying complete calls based on the configured delay.
It commits messages to the agent's history immediately via commitUserMessage and executes them after the delay if the session remains active.
Optional__namedParameters: Partial<ISessionConfig>
Creates a session for a client and swarm, providing methods to complete and dispose of it.
This factory establishes a session in "session" mode, allowing content execution with queuing for sequential processing. It returns an object with
completeto process content anddisposeto clean up the session.Throws
If swarm or session validation fails, or if execution/disposal encounters an error.
Example