Chat


Object Hierarchy:

Object hierarchy for Chat

Description:

public class Chat : Base, ChatContentInterface

Response from a chat API call.

Contains the assistant's message, tool calls (if any), and metadata. Handles streaming responses and tool call detection for automatic execution.

Example

var response = yield client.chat("Hello!");

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

// Check for tool calls
if (response.tool_calls.size > 0) {
// Tools were requested by the model
}

// Access performance metrics
print(@"Total duration: $(response.total_duration)ns");


Namespace: OLLMchat.Response
Package: ollmchat

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

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