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 43 44 45 46 47 48 49 | import {
GenerationModelInfo,
NewSkillInput,
ProposedSkill,
} from "@/objects/AgentSetup";
import { Skill } from "@/objects/Skill";
import { Skillset } from "@/objects/Skillset";
/** A narrower sibling of the generative agent setup types, scoped to
* creating a standalone skillset. Skills-only by construction — nothing
* here has a tool or MCP-server field, so a generated skillset can never
* bundle either. */
export interface GenerateSkillsetRequest {
problem_description: string;
ai_model_id?: string | null;
}
/** The reviewed-and-editable proposal returned by POST /skillsets/generate. */
export interface SkillsetGenerationProposal {
name: string;
description: string;
reasoning: string;
/** Informational only — selecting an existing skill here does not
* include it; toggle it in the review step to add it as a member. */
/** The user's own skills and the platform's built-in ones
* (`is_system`), which are bundled by reference. */
selected_skills: Skill[];
proposed_skills: ProposedSkill[];
warnings: string[];
model: GenerationModelInfo;
/** The invocation that produced this proposal, passed back on create. */
generation_id: string;
}
export interface CreateSkillsetFromConfigRequest {
name: string;
description: string;
/** The proposal's generation, so what is created resolves to it. */
generation_id?: string | null;
existing_skill_ids: string[];
new_skills: NewSkillInput[];
}
export interface CreateSkillsetFromConfigResponse {
skillset: Skillset;
created_skill_ids: string[];
}
|