Skip to main content

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.