workflow fails : Processor workflow sentiment-agent-output-processor failed with status: failed
WorkflowsAgent
i have a workflow that calls an sub-agent in a step. that workflow always fails with the following error: Processor workflow sentiment-agent-output-processor failed with status: failed
when i look at the trace for the agent call i can see the agent has the following error: processor_run MessageHistory : Thread ID is required
my step looks like this:
'''// Step 2: Run sentiment analysis for all symbols const sentimentAnalysisStep = createStep({ id: "sentiment-analysis", description: "Performs sentiment analysis for all asset symbols in one call", inputSchema: z.object({ symbols: z .array(z.string()) .describe("Asset symbols (e.g., BTCUSD, XAUUSD, AAPL, ^NDX)"), reportType: z .string() .describe("Report type (e.g., opportunistic, statistical)"), }), outputSchema: z.object({ text: z.string(), }), execute: async ({ inputData, requestContext }) => { if (!inputData) { throw new Error("Input data not found"); }
Analyze the sentiment for the following assets: ${symbolsList}. Report type: ${inputData.reportType}. Provide a comprehensive sentiment analysis for each symbol.
Analyze the sentiment for the following assets: ${symbolsList}. Report type: ${inputData.reportType}. Provide a comprehensive sentiment analysis for each symbol.
;
const result = await SentimentAgent.generate(prompt, { requestContext });