LLM::Chat
Inherits Reference < Object
Chat is an abstract class that serves as a base for creating various chat implementations.
Constructors
Instance methods
Append conversations to target chat's history
Submit a query, with optional attachments and request for response as a JSON object by specifying a JSON schema.
Invoke tool calls and return number of calls made; if positive call re_ask to
hand call results to the models to process
Extract conversations and return as a JSON string or nil
Replace current session with a "fork" of the session from the given
Chat instance; may fail if self is not compatible.
Resubmit current session as a query to get another answer
Append latest num_responses messages to the target chat's history
Yield the latest num_responses messages from chat history
Return nil if unable to use / enable the function