UNPKG

@smythos/sdk

Version:
27 lines (26 loc) 712 B
import { Agent } from '../Agent/Agent.class'; import { InputSettings } from '../types/SDKTypes'; export type TSkillSettings = { name: string; endpoint?: string; status_message?: string; ai_exposed?: boolean; description?: string; method?: 'GET' | 'POST' | 'PUT' | 'DELETE'; process?: (input?: any) => Promise<any>; inputs?: Record<string, { source: any; } & InputSettings>; }; export type TSkillInputs = { [key: string]: InputSettings; }; export declare function Skill(settings?: TSkillSettings, agent?: Agent): { out: { [key: string]: any; headers: any; body: any; query: any; }; in: (inputs: TSkillInputs) => void; };