The type of message, extending IBaseMessage with any role type. Defaults to IBaseMessage for maximum flexibility.
The type of completion arguments, defaults to any completion args type.
OptionalcallbacksOptional partial set of callbacks for completion events, allowing customization of post-completion behavior.
The unique name of the completion mechanism within the swarm.
OptionalflagsList of flags for llm model. As example, /no_think for lmstudio-community/Qwen3-32B-GGUF
Optionaljson
Interface representing the schema for configuring a completion mechanism. Defines how completions are generated within the swarm.