Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

chat

AsyncMethod
This is a method of the LlmProvider class in the llm module.
Send a chat completion request

Signature

async def chat(
        &self,
        messages: &[Message],
        tools: Option<&[ToolDefinition]>,
    ) -> Result<LlmResponse>

Parameters

messages
&
required
No description available.
tools
Option<&
required
No description available.

Returns

Returns
Result<LlmResponse>
The result of the operation.