View Source LangChain.ChatModels.ChatModel behaviour (LangChain v0.3.3)
Summary
Functions
Restore a ChatModel from a serialized config map.
Create a serializable map from a ChatModel's current configuration that can later be restored.
Types
@type call_response() :: {:ok, LangChain.Message.t() | [LangChain.Message.t()] | [LangChain.MessageDelta.t()]} | {:error, LangChain.LangChainError.t()}
@type t() :: Ecto.Schema.t()
@type tool() :: LangChain.Function.t()
@type tools() :: [tool()]
Callbacks
@callback call( t(), String.t() | [LangChain.Message.t()], [LangChain.Function.t()] ) :: call_response()