declare function overrideCompletion<Message extends IBaseMessage<any> = IBaseMessage<string>, Args extends IBaseCompletionArgs<IBaseMessage<string>> = IBaseCompletionArgs<Message>>(completionSchema: TCompletionSchema<Message, Args>): ICompletionSchema<IBaseMessage<any>, IBaseCompletionArgs<IBaseMessage<any>>>;
Overrides an existing completion schema in the swarm system with a new or partial schema.
This function updates the configuration of a completion mechanism identified by its completionName, applying the provided schema properties.
It operates outside any existing method or execution contexts to ensure isolation, leveraging beginContext for a clean execution scope.
Logs the override operation if logging is enabled in the global configuration.
| Parameter | Description |
|---|---|
completionSchema |
The schema definition for completion. |