View Source LangChain.ChatModels.ChatModel behaviour (LangChain v0.2.0)
Summary
Types
@type call_response() :: {:ok, LangChain.Message.t() | [LangChain.Message.t()] | [LangChain.MessageDelta.t()]} | {:error, String.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()], nil | (LangChain.Message.t() | LangChain.MessageDelta.t() -> any()) ) :: call_response()