Cantrip.Identity (Cantrip v1.3.3)

Copy Markdown View Source

Identity is who the entity is: the system prompt plus model-facing options. It is bound when the cantrip is constructed and every summoning inherits it.

Immutable identity configuration (identity + llm knobs).

Summary

Types

t()

@type t() :: %Cantrip.Identity{
  schema_version: pos_integer(),
  system_prompt: String.t() | nil,
  temperature: number() | nil,
  tool_choice: String.t() | nil
}

Functions

new(attrs \\ %{})

@spec new(keyword() | map()) :: t()