View Source LangChain.ChatModels.ChatModel behaviour (LangChain v0.1.8)

Summary

Types

@type call_response() :: {:ok, Message.t() | [Message.t()]} | {:error, String.t()}
@type t() :: Ecto.Schema.t()

Callbacks

Link to this callback

call(t, arg2, list, arg4)

View Source
@callback call(
  t(),
  String.t() | [Message.t()],
  [LangChain.Function.t()],
  nil | (Message.t() | MessageDelta.t() -> any())
) :: call_response()