UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

38 lines (37 loc) • 1.14 kB
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>", sourceSessionId: "<issuing-session-id>", ifUnavailable: "close", }; export const ASK_REQUEST_SUBAGENT = { toolName: "target", toolCallId: "<tool-call-id>", args: { "<arg-key>": "<arg-value>" }, message: "<message>", sourceSessionId: "<issuing-session-id>", agentId: "<agent-id>", fromSubagent: true, sourceAgentName: "<agent-name>", isDelegatedChild: true, ifUnavailable: "close", }; export const ASK_REQUEST_WORKFLOW_CHILD = { toolName: "target", toolCallId: "<tool-call-id>", args: { "<arg-key>": "<arg-value>" }, message: "<message>", sourceSessionId: "<issuing-session-id>", agentId: "<agent-id>", sourceAgentName: "<agent-name>", isDelegatedChild: true, ifUnavailable: "close", }; export const ASK_REQUEST_FIXTURES = { host: ASK_REQUEST_HOST, subagent: ASK_REQUEST_SUBAGENT, workflowChild: ASK_REQUEST_WORKFLOW_CHILD, };