@sema-agent/core
Version:
Stateless, task-oriented AI agent core
33 lines (32 loc) • 988 B
JavaScript
export const FIXTURE_PLACEHOLDER_RE = /^<[a-z-]+>$/;
export const ASK_REQUEST_HOST = {
toolName: "target",
toolCallId: "<tool-call-id>",
args: { "<arg-key>": "<arg-value>" },
message: "<message>",
sourceTaskId: "<issuing-session-id>",
};
export const ASK_REQUEST_SUBAGENT = {
toolName: "target",
toolCallId: "<tool-call-id>",
args: { "<arg-key>": "<arg-value>" },
message: "<message>",
sourceTaskId: "<issuing-session-id>",
fromSubagent: true,
sourceAgentName: "<agent-name>",
isDelegatedChild: true,
};
export const ASK_REQUEST_WORKFLOW_CHILD = {
toolName: "target",
toolCallId: "<tool-call-id>",
args: { "<arg-key>": "<arg-value>" },
message: "<message>",
sourceTaskId: "<issuing-session-id>",
sourceAgentName: "<agent-name>",
isDelegatedChild: true,
};
export const ASK_REQUEST_FIXTURES = {
host: ASK_REQUEST_HOST,
subagent: ASK_REQUEST_SUBAGENT,
workflowChild: ASK_REQUEST_WORKFLOW_CHILD,
};