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

python
def chat(prompt: str) -> str

Parameters

ParamField str

The user prompt or message **kwargs: Additional optional parameters (temperature, tools, etc.)

Returns

ResponseField str

The agent’s response as a string

Used By

Source

View on GitHub

praisonaiagents/agent/protocols.py at line 67


Related Documentation