diff --git a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts index 43fdd6ac8..0009dbff3 100644 --- a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts +++ b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts @@ -53,7 +53,6 @@ export type ThinkAndPrepAgentOptions = z.infer; export function createThinkAndPrepAgent(thinkAndPrepAgentSchema: ThinkAndPrepAgentOptions) { - const steps: never[] = []; const { messageId } = thinkAndPrepAgentSchema; const systemMessage = { @@ -147,12 +146,7 @@ export function createThinkAndPrepAgent(thinkAndPrepAgentSchema: ThinkAndPrepAge throw new Error('Max retry attempts exceeded'); } - async function getSteps() { - return steps; - } - return { stream, - getSteps, }; } diff --git a/packages/ai/src/steps/analyst-agent-steps/create-todos-step/create-todos-step.ts b/packages/ai/src/steps/analyst-agent-steps/create-todos-step/create-todos-step.ts index 3e8741187..65fc8d11a 100644 --- a/packages/ai/src/steps/analyst-agent-steps/create-todos-step/create-todos-step.ts +++ b/packages/ai/src/steps/analyst-agent-steps/create-todos-step/create-todos-step.ts @@ -74,7 +74,7 @@ export async function runCreateTodosStep(params: CreateTodosParams): Promise 0 + ? { + role: 'user', + content: storedValuesResult.searchResults, + } + : undefined, }; } catch (error) { // Handle AbortError gracefully