UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

25 lines (24 loc) • 1.27 kB
import { Type } from "typebox"; export declare const TASK_STOP_TOOL_NAME = "TaskStop"; export declare const TASK_STOP_CONTRACT: { readonly contractId: "core.task_stop@1"; readonly implementationRevision: "1"; }; export declare const TASK_STOP_MISSING_ID_MESSAGE = "Missing required parameter: task_id"; export declare const TASK_STOP_PARAMS: Type.TObject<{ task_id: Type.TOptional<Type.TString>; shell_id: Type.TOptional<Type.TString>; }>; /** * Trims and skips blank/whitespace-only candidates, returning the first non-blank string among `values`. * RB-479-A①: callers pass ONLY the tool's declared id parameters (TaskStop: task_id, shell_id) — an id smuggled under * any other key falls to the loud missing-parameter refusal. The trim/skip-blank behavior stays (a whitespace-only id * reports the same missing-parameter text as an absent one, instead of falling through to a not-found lookup on the * literal " "). */ export declare function resolveTaskIdArg(...values: unknown[]): string | undefined; /** * TaskStop's description. The named-agent bullet is the reference's; its teammate bullet stays honestly omitted — * sema's team face is in-process, not registry-addressable. */ export declare const TASK_STOP_DESCRIPTION: string;