Skip to main content

chat

Method
This is a method of the Agent class in the agent module.
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) -> Any

Parameters

prompt
Any
required
Text query that WILL be stored in chat_history
temperature
Any
default:"1.0"
No description available.
tools
Any
No description available.
output_json
Any
No description available.
output_pydantic
Any
No description available.
reasoning_steps
Any
default:"False"
No description available.
stream
Any
No description available.
task_name
Any
No description available.
task_description
Any
No description available.
task_id
Any
No description available.
config
Any
No description available.
force_retrieval
Any
default:"False"
No description available.
skip_retrieval
Any
default:"False"
No description available.
attachments
Any
Optional list of image/file paths that are ephemeral (used for THIS turn only, NEVER stored in history).
tool_choice
Any
Optional tool choice mode (‘auto’, ‘required’, ‘none’). ‘required’ forces the LLM to call a tool before responding. …other args…

Returns

Returns
Any
The result of the operation.