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

python
def chat(message: str) -> str

Parameters

ParamField str

User message/query

Returns

ResponseField str

Agent response (with citations if configured)

Uses

  • time.time
  • logger.debug
  • retrieve
  • chat_with_context
  • chat

Used By

Source

View on GitHub

praisonaiagents/agents/auto_rag_agent.py at line 288


Related Documentation