achat • AI Agent SDK

achat: Async version of chat method with self-reflection support.

achat

Async

Method

</div>

This is a method of the Agent class in the agent module.

Async version of chat method with self-reflection support.

Signature

python
async def achat(prompt: str, temperature: Any, tools: Any, output_json: Any, output_pydantic: Any, reasoning_steps: Any, task_name: Any, task_description: Any, task_id: Any, attachments: Any) -> Any

Parameters

ParamField str

Text query that WILL be stored in chat_history

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

No description available.

ParamField Any

Optional list of image/file paths that are ephemeral (used for THIS turn only, NEVER stored in history).

Returns

ResponseField Any

The result of the operation.

Uses

  • get_context_emitter
  • _trace_emitter.agent_start
  • _trace_emitter.agent_end

Used By

Source

View on GitHub

praisonaiagents/agent/agent.py at line 5448


Related Documentation