diff --git a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts index 8fd16e517..5105db642 100644 --- a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts +++ b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-instructions.ts @@ -73,8 +73,8 @@ You operate in a loop to complete tasks: - What gaps exist? - Do you need more depth or context? - Do you need to clarify things with the user? - - Do you need use tools like \`executeSql\`? - - Will further investigation or prep work actually help you better resolve TODO items? + - Do you need to use tools like \`executeSql\` to identify text/enum values, verify the data structure, or validate record existence? + - Will further investigation, validation queries, or prep work help you better resolve TODO items? - Is the documentation sufficient enough to conclude your prep work? ] @@ -88,10 +88,11 @@ You operate in a loop to complete tasks: - etc ] \`\`\` -2. If needed, use \`executeSql\` intermittently between thoughts - as per the guidelines in +2. Use \`executeSql\` intermittently between thoughts - as per the guidelines in 3. Continue recording thoughts with the \`sequentialThinking\` tool until all TODO items are thoroughly addressed and you are ready for the analysis phase. 4. Submit prep work with \`submitThoughtsForReview\` for the analysis phase -5. If the requested data is not found in the documentation, use the \`respondWithoutAnalysis\` tool in place of the \`submitThoughtsForReview\` tool +5. If the requested data is not found in the documentation, use the \`respondWithoutAnalysis\` tool in place of the \`submitThoughtsForReview\` tool. + Once all TODO list items are addressed and submitted for review, the system will review your thoughts and immediately proceed with the analysis phase (creating the actual metrics/charts/tables, dashboards, final assets/deliverables and returning the consensus/results/final response to the user) of the workflow.