Chat


Object Hierarchy:

Object hierarchy for Chat

Description:

public class Chat : Base, ChatContentInterface

Chat API call implementation for sending messages and receiving responses.

Handles chat conversations with the LLM, including message history, tool calling, streaming responses, and automatic tool execution. Manages the conversation flow and tool call recursion. Automatically executes tools when the model requests them and continues the conversation with tool results.

Example

var call = new Call.Chat(client, "llama3.2");
call.messages.add(new Message("user", "Hello!"));

// Execute chat (handles tool calls automatically)
var response = yield call.send(call.messages);

// Access response content
print(response.message.content);


Namespace: OLLMchat.Call
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object
All known members inherited from interface OLLMchat.ChatContentInterface
All known members inherited from interface Json.Serializable