Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | import { GenerationModelInfo } from "@/objects/AgentSetup";
import { MCPServer } from "@/objects/MCPServer";
import { Toolkit } from "@/objects/Toolkit";
/** A narrower sibling of the generative skillset setup types, scoped to
* creating a standalone toolkit. Existing-resources-only by construction —
* nothing here has a "proposed new MCP server" field, so a generated toolkit
* can only ever select/bundle servers that already exist (they carry live
* credentials only a human can safely configure).
*
* Built-in tools are not selectable: svc-ai binds its general set to every
* agent, so a toolkit has nothing to say about them. */
export interface GenerateToolkitRequest {
problem_description: string;
ai_model_id?: string | null;
}
/** The reviewed-and-editable proposal returned by POST /toolkits/generate. */
export interface ToolkitGenerationProposal {
name: string;
description: string;
reasoning: string;
selected_mcp_servers: MCPServer[];
warnings: string[];
model: GenerationModelInfo;
/** The invocation that produced this proposal, passed back on create. */
generation_id: string;
}
export interface CreateToolkitFromConfigRequest {
name: string;
description: string;
/** The proposal's generation, so what is created resolves to it. */
generation_id?: string | null;
existing_mcp_server_ids: string[];
}
export interface CreateToolkitFromConfigResponse {
toolkit: Toolkit;
}
|