Skip to main content

chat

Method
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) -> str

Parameters

message
str
required
User message/query

Returns

Returns
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 291