Protected
Readonly
aiProtected
messagesProtected
Readonly
providerProtected
Readonly
trackerAppend messages to the conversation history. Adds messages to the conversation history without invoking the model, which is useful for managing multi-turn conversations or injecting context.
Array of messages to append to the conversation history
Get the underlying AI configuration used to initialize this TrackedChat.
Get all messages in the conversation history.
Whether to include the config messages from the AIConfig. Defaults to false.
Array of messages. When includeConfigMessages is true, returns both config messages and conversation history with config messages prepended. When false, returns only the conversation history messages.
Get the underlying AI provider instance. This provides direct access to the provider for advanced use cases.
Get the underlying AI configuration tracker used to initialize this TrackedChat.
Invoke the chat model with a prompt string. This method handles conversation management and tracking, delegating to the provider's invokeModel method.
Generated using TypeDoc
Concrete implementation of TrackedChat that provides chat functionality by delegating to an AIProvider implementation. This class handles conversation management and tracking, while delegating the actual model invocation to the provider.