Understand how agents operate in the Python API to support both Simple and RAG-style interactions.
Flow Overview
Agent Document Check
agent.doc_ids
or a similar flag.Context Construction
"You are a helpful assistant. {agent_prompt}\n\n{chat_history}\n\nUser: {query}"
Response Streaming and Storage
RAG with Agent (when docs exist)
Architecture Diagram
Agent RAG not triggering as expected
Agent prompt not applied or missing in context