Forcefully commits a system-generated message to a session in the swarm system, without checking the active agent.
Validates the session and swarm, then proceeds with committing the message regardless of the current agent state.
Runs within a beginContext wrapper for execution context management, logging operations via LoggerService.
Integrates with SessionValidationService (session and swarm retrieval), SwarmValidationService (swarm validation),
SessionPublicService (message committing), and LoggerService (logging).
Unlike commitSystemMessage, this function skips agent validation and active agent checks, providing a more aggressive commit mechanism,
analogous to commitAssistantMessageForce vs. commitAssistantMessage.
Parameters
content: string
The content of the system message to commit, typically related to system state or control instructions.
clientId: string
The ID of the client associated with the session, validated against active sessions.
Returns Promise<void>
A promise that resolves when the message is committed.
Throws
If session or swarm validation fails, propagated from respective validation services.
Forcefully commits a system-generated message to a session in the swarm system, without checking the active agent. Validates the session and swarm, then proceeds with committing the message regardless of the current agent state. Runs within a beginContext wrapper for execution context management, logging operations via LoggerService. Integrates with SessionValidationService (session and swarm retrieval), SwarmValidationService (swarm validation), SessionPublicService (message committing), and LoggerService (logging). Unlike commitSystemMessage, this function skips agent validation and active agent checks, providing a more aggressive commit mechanism, analogous to commitAssistantMessageForce vs. commitAssistantMessage.