Arcanum.Intent (arcanum v0.1.0)

Copy Markdown View Source

Canonical request struct for inference calls.

Normalizes the request format across all providers so that the adapter layer handles provider-specific serialization.

Summary

Types

message()

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

t()

@type t() :: %Arcanum.Intent{
  context_length: pos_integer() | nil,
  max_tokens: pos_integer() | nil,
  messages: [message()],
  model: String.t(),
  temperature: float() | nil,
  tools: [tool()] | nil
}

tool()

@type tool() :: %{
  type: String.t(),
  function: %{name: String.t(), description: String.t(), parameters: map()}
}