BeamAgent.LLM.Client behaviour (beam_agent v0.1.0)

Copy Markdown View Source

Behaviour implemented by every LLM provider.

Summary

Types

message()

@type message() :: %{role: atom(), content: String.t()}

response()

@type response() :: {:reply, String.t()} | {:tool_call, atom(), map()}

Callbacks

chat(list, keyword)

@callback chat(
  [message()],
  keyword()
) :: response()