ICompletionSchema

Interface representing the schema for configuring a completion mechanism. Defines how completions are generated within the swarm.

completionName: string

The unique name of the completion mechanism within the swarm.

flags: string[]

List of flags for llm model. As example, /no_think for lmstudio-community/Qwen3-32B-GGUF

callbacks: Partial<ICompletionCallbacks>

Optional partial set of callbacks for completion events, allowing customization of post-completion behavior.

getCompletion: (args: ICompletionArgs) => Promise<IModelMessage<object>>

Retrieves a completion based on the provided arguments. Generates a model response using the given context and tools.