chat • AI Agent SDK
chat: Synchronous chat with the agent.
chat
Method
</div>
This is a method of the AgentProtocol class in the protocols module.
Synchronous chat with the agent.
Signature
def chat(prompt: str) -> strParameters
ParamField
strThe user prompt or message **kwargs: Additional optional parameters (temperature, tools, etc.)
Returns
ResponseField
strThe agent’s response as a string
Used By
Agent.chat_with_contextTypedHandoff.execute_programmaticAutoRagAgent.chatAutoRagAgent.achatLLMRuntimeWrapper.execute
Source
View on GitHubpraisonaiagents/agent/protocols.py at line 67