All files / src/objects Worker.tsx

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

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                                                                 
import { AIGenerated } from "@/objects/Doc";
import { FieldSpec } from "@/objects/Skill";
 
export interface WorkerModelOverrides {
  provider?: string;
  model?: string;
  temperature?: number;
  max_tokens?: number;
}
 
export interface CustomWorker extends AIGenerated {
  id: string;
  name: string;
  description?: string;
  base_worker: string | null;
  role: string | null;
  system_prompt?: string;
  tags: string[];
  model_overrides?: WorkerModelOverrides | null;
  tools_enabled?: boolean;
  mcp_server_ids?: string[];
  /** Typed interface — values a skill node binds into this worker. */
  input_schema?: FieldSpec[];
  /** Typed interface — non-empty means the worker returns a structured object. */
  output_schema?: FieldSpec[];
  /** Registered name in svc-ai — the `agent_name` to use in skill graphs. */
  definition_name?: string | null;
  owner_user_id?: string | null;
  owner_organisation_id?: string | null;
  owner_project_id?: string | null;
  created_at: string;
}