@@ -12464,9 +12464,9 @@ type TSwarmSchema = {
1246412464 */
1246512465declare function overrideSwarm(swarmSchema: TSwarmSchema): ISwarmSchema;
1246612466
12467- type TAgentTool = {
12468- toolName: IAgentTool["toolName"];
12469- } & Partial<IAgentTool>;
12467+ type TAgentTool<T extends any = Record<string, ToolValue>> = {
12468+ toolName: IAgentTool<T> ["toolName"];
12469+ } & Partial<IAgentTool<T> >;
1247012470/**
1247112471 * Overrides an existing tool schema in the swarm system with a new or partial schema.
1247212472 * This function updates the configuration of a tool identified by its `toolName`, applying the provided schema properties.
@@ -12488,7 +12488,7 @@ type TAgentTool = {
1248812488 * });
1248912489 * // Logs the operation (if enabled) and updates the tool schema in the swarm.
1249012490 */
12491- declare function overrideTool(toolSchema: TAgentTool): IAgentTool<Record<string, ToolValue>>;
12491+ declare function overrideTool<T extends any = Record<string, ToolValue>> (toolSchema: TAgentTool<T> ): IAgentTool<Record<string, ToolValue>>;
1249212492
1249312493/**
1249412494 * Type definition for a partial MCP schema, requiring at least an mcpName.
@@ -12538,15 +12538,15 @@ declare function overrideWiki(wikiSchema: TWikiSchema): IWikiSchema;
1253812538 * @type TComputeSchema
1253912539 * @description Type for partial compute schema updates, requiring computeName and allowing other IComputeSchema properties.
1254012540 */
12541- type TComputeSchema = {
12542- computeName: IComputeSchema["computeName"];
12543- } & Partial<IComputeSchema>;
12541+ type TComputeSchema<T extends IComputeData = any> = {
12542+ computeName: IComputeSchema<T> ["computeName"];
12543+ } & Partial<IComputeSchema<T> >;
1254412544/**
1254512545 * Overrides an existing compute schema with provided partial updates.
1254612546 * @param {TComputeSchema} computeSchema - The partial compute schema with updates.
1254712547 * @returns {IComputeSchema} The updated compute schema.
1254812548 */
12549- declare function overrideCompute(computeSchema: TComputeSchema): IComputeSchema<any>;
12549+ declare function overrideCompute<T extends IComputeData = any> (computeSchema: TComputeSchema<T> ): IComputeSchema<any>;
1255012550
1255112551/**
1255212552 * @module overridePipeline
@@ -12568,16 +12568,16 @@ declare function overridePipeline<Payload extends object = any>(pipelineSchema:
1256812568 * @property {IOutlineSchema["outlineName"]} outlineName - The unique name of the outline to override.
1256912569 * @property {Partial<IOutlineSchema>} [partial] - Optional partial properties of the `IOutlineSchema` to override.
1257012570 */
12571- type TOutlineSchema = {
12572- outlineName: IOutlineSchema["outlineName"];
12573- } & Partial<IOutlineSchema>;
12571+ type TOutlineSchema<Data extends IOutlineData = IOutlineData, Param extends IOutlineParam = IOutlineParam> = {
12572+ outlineName: IOutlineSchema<Data, Param> ["outlineName"];
12573+ } & Partial<IOutlineSchema<Data, Param> >;
1257412574/**
1257512575 * Overrides an existing outline schema in the swarm system by updating it with the provided partial schema.
1257612576 * Ensures the operation runs in a clean context using `beginContext` to avoid interference from existing method or execution contexts.
1257712577 * Logs the operation if logging is enabled in the global configuration.
1257812578 * @param {TOutlineSchema} outlineSchema - The partial outline schema containing the outline name and optional schema properties to override.
1257912579 */
12580- declare function overrideOutline(outlineSchema: TOutlineSchema): IOutlineSchema<any, any>;
12580+ declare function overrideOutline<Data extends IOutlineData = IOutlineData, Param extends IOutlineParam = IOutlineParam> (outlineSchema: TOutlineSchema<Data, Param> ): IOutlineSchema<any, any>;
1258112581
1258212582/**
1258312583 * Marks a client as online in the specified swarm.
0 commit comments