store
mode to store messages genereted by one of the supported LLM providers (OpenAI
or Anthropic
) or from any other provider. This mode is ideal for scenarios where you want to use your own instance of the LLM provider (or even a custom one) and store the messages in a structured way.
store
method. You can store a message genereted by one of the supported providers (OpenAI
or Anthropic
) or any other provider (or even a custom one).
custom callback
that takes the store object as a parameter. This way you can store the message object in your database, so the data never leaves your server.
See Custom storing system for more information.