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.
If the completion schema service encounters an error during the override operation (e.g., invalid completionName or schema).
Example
// Override a completion’s schema with new properties overrideCompletion({ completionName:"TextCompletion", model:"gpt-4", maxTokens:500, }); // Logs the operation (if enabled) and updates the completion schema in the swarm.
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, leveragingbeginContextfor a clean execution scope. Logs the override operation if logging is enabled in the global configuration.