Skip to main content

Module chat

Module chat 

Source

Structs§

CallFunction
Represents a callable function within a tool interaction.
Document
Represents a document with an ID, text, and additional properties.
Message
Request
Represents a request sent to a language model for generating a completion response.
ToolCall
Represents a call to a specific tool in a response.

Enums§

CompletionError
An enumeration of possible errors that may occur during completion operations.

Traits§

Completion
A trait defining the behavior of a completion engine.
Prompt
A trait representing a prompt-based interaction mechanism.
ResponseContent
A trait for extracting the content from a language model’s response.
ResponseToolCalls
A trait for extracting tool-based calls from a language model’s response.