@deskcreate/agentcraft
    Preparing search index...

    Interface DefineSkillConfig

    interface DefineSkillConfig {
        cleanup?: () => Promise<void>;
        dependsOn?: (AdapterRef | AdapterRef[])[];
        description: string;
        directive?: string;
        init?: () => Promise<void>;
        metadata?: SkillMetadata;
        name: string;
        onAfterRun?: (
            response: AgentResponse,
        ) => AgentResponse | Promise<AgentResponse>;
        onAfterStream?: (
            chunks: StreamChunk[],
            response: AgentResponse,
        ) => AgentResponse | Promise<AgentResponse>;
        onBeforeRun?: (
            params: AgentRunParams,
        ) => AgentRunParams | Promise<AgentRunParams>;
        prompt?: SkillPromptTemplate;
        requires?: ("audio" | "tools" | "video" | "files" | "vision")[];
        systemPromptExtension?: string | (() => string);
        tools?: ToolDefinition[];
    }
    Index

    Properties

    cleanup?: () => Promise<void>
    dependsOn?: (AdapterRef | AdapterRef[])[]
    description: string
    directive?: string
    init?: () => Promise<void>
    metadata?: SkillMetadata
    name: string
    onAfterRun?: (response: AgentResponse) => AgentResponse | Promise<AgentResponse>
    onAfterStream?: (
        chunks: StreamChunk[],
        response: AgentResponse,
    ) => AgentResponse | Promise<AgentResponse>
    onBeforeRun?: (
        params: AgentRunParams,
    ) => AgentRunParams | Promise<AgentRunParams>
    requires?: ("audio" | "tools" | "video" | "files" | "vision")[]
    systemPromptExtension?: string | (() => string)
    tools?: ToolDefinition[]