chat • AI Agent SDK
chat: Chat with the agent.
chat
Method
</div>
Chat with the agent.
Signature
def chat(prompt: Any, temperature: Any, tools: Any, output_json: Any, output_pydantic: Any, reasoning_steps: Any, stream: Any, task_name: Any, task_description: Any, task_id: Any, config: Any, force_retrieval: Any, skip_retrieval: Any, attachments: Any, tool_choice: Any) -> AnyParameters
ParamField
AnyText query that WILL be stored in chat_history
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyNo description available.
ParamField
AnyOptional list of image/file paths that are ephemeral (used for THIS turn only, NEVER stored in history).
ParamField
AnyOptional tool choice mode (‘auto’, ‘required’, ‘none’). ‘required’ forces the LLM to call a tool before responding. …other args…
Returns
ResponseField
AnyThe result of the operation.
Uses
get_context_emitter_trace_emitter.agent_start_trace_emitter.agent_end
Used By
Source
View on GitHubpraisonaiagents/agent/agent.py at line 4908