From the course: Chat with Your Data Using ChatGPT

Unlock this course with a free trial

Join today to access over 25,400 courses taught by industry experts.

Challenge: Let your agent plan and act

Challenge: Let your agent plan and act - OpenAI API Tutorial

From the course: Chat with Your Data Using ChatGPT

Challenge: Let your agent plan and act

Your goal in this challenge is to verify that your agent can autonomously plan, execute, and evaluate a sequence of reasoning steps. First, use the existing persistent SQLite session and run the agent once with the manuscript page images. This initial run establishes the agent's baseline observations and stores them in memory so the agent has context to build on. Next, define a clear research goal for the agent. This goal should describe what you want the agent to achieve across multiple steps, not what it should answer in a single response. After that, ask the agent to generate a short plan for achieving the goal. The plan should consist of concrete analysis steps that can be executed one at a time. Then iterate through the plan steps. For each step, run the agent to execute that specific action and capture the structured output it produces. After each execution, ask the agent to evaluate its progress toward the goal. Use this evaluation to decide whether the agent should continue to…

Contents