This commit is contained in:
Siddharth Ganesan
2026-02-05 19:59:00 -08:00
parent 5f89f625d7
commit 05ee6da190
2 changed files with 5 additions and 8 deletions

View File

@@ -59,7 +59,7 @@ export async function orchestrateSubagentStream(
'Content-Type': 'application/json',
...(env.COPILOT_API_KEY ? { 'x-api-key': env.COPILOT_API_KEY } : {}),
},
body: JSON.stringify({ ...requestPayload, stream: true }),
body: JSON.stringify({ ...requestPayload, userId, stream: true }),
},
context,
execContext,

View File

@@ -63,20 +63,17 @@ export const DIRECT_TOOL_DEFS: DirectToolDef[] = [
},
{
name: 'get_workflow',
toolId: 'get_workflow_from_name',
description: 'Get a workflow by name or ID. Returns the full workflow definition.',
toolId: 'get_user_workflow',
description: 'Get a workflow by ID. Returns the full workflow definition.',
inputSchema: {
type: 'object',
properties: {
name: {
type: 'string',
description: 'Workflow name to search for.',
},
workflowId: {
type: 'string',
description: 'Workflow ID to retrieve directly.',
description: 'Workflow ID to retrieve.',
},
},
required: ['workflowId'],
},
},
{