package chatoyant

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Chatoyant_core.ChatSource

Stateful provider-neutral chat container.

This module owns conversation state only. Provider execution will be layered through functors/adapters so that raw provider clients remain independently testable.

Sourcetype t
Sourceval create : ?model:string -> ?defaults:Options.t -> unit -> t
Sourceval model : t -> string
Sourceval messages : t -> Message.t list
Sourceval tools : t -> Tool.t list
Sourceval add_message : Message.t -> t -> t
Sourceval add_tool : Tool.t -> t -> t
Sourceval system : string -> t -> t
Sourceval user : string -> t -> t
Sourceval assistant : string -> t -> t
Sourceval clear_messages : t -> t
Sourceval clear_tools : t -> t