ReqAnthropic.Model (ReqAnthropic v0.2.1)

Copy Markdown View Source

Struct representation of an Anthropic model and its capabilities.

Summary

Functions

Build a Model struct from an Anthropic API response map.

Types

t()

@type t() :: %ReqAnthropic.Model{
  created_at: String.t() | nil,
  display_name: String.t() | nil,
  id: String.t(),
  raw: map() | nil,
  type: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Build a Model struct from an Anthropic API response map.