Create an order agent with a function and memory
Priya asks Contoso's order agent where her order is. Create the agent with a strict function schema and file search, see it ask for a missing order number instead of guessing, then give it memory so it remembers a preference next week.
You will learn:Role, goal and rules in instructionsA strict function schema with a required parameterThe model asks, your code runs the functionMemory that survives into a new conversation
Related lessons: Design an Agent: Role, Goals, Threads and Tool Schemas · Agents with Retrieval, Function Calling and Memory