chat • AI Agent SDK
chat: Chat with automatic RAG retrieval decision.
chat
Method
</div>
This is a method of the AutoRagAgent class in the auto_rag_agent module.
Chat with automatic RAG retrieval decision.
Decides whether to retrieve context, then runs agent chat.
Signature
def chat(message: str) -> strParameters
ParamField
strUser message/query
Returns
ResponseField
strAgent response (with citations if configured)
Uses
time.timelogger.debugretrievechat_with_contextchat
Used By
Agent.chat_with_contextTypedHandoff.execute_programmaticAutoRagAgent.chatAutoRagAgent.achatLLMRuntimeWrapper.execute
Source
View on GitHubpraisonaiagents/agents/auto_rag_agent.py at line 288