ExAgent.ModelProfile (ExAgent v3.0.0)

View Source

The capabilities a model declares for request admission and host discovery.

Stability — Stable.

Every model returns one through the optional ExAgent.Model.profile/1 callback; a model without it gets the conservative defaults below. Basic text needs no capability flag, and streaming is the optional ExAgent.Model.request_stream/4 callback, not a flag.

  • supports_tools — function tools and tool-based structured output.
  • supports_image_input — user image attachments, used when projecting a handoff.
  • supports_audio_input — user audio attachments. The adapter checks each attachment against its supported MIME types and limits.
  • Candidate file_references — pairs of provider and MIME strings accepted for user file references. Use the model's ExAgent.Model.system/1 as the provider and a MIME string such as "application/pdf". ExAgent.Model.profile/1 returns MIME strings in lowercase. The default is empty.
  • supports_image_tool_results — inline images inside a tool response.
  • supports_json_schema_output — output_mode: :native. It does not disable Ecto output through a tool.
  • Candidate reasoning_binding — :prefix when replayable reasoning depends on the earlier model input, :none by default. Adapters declaring :prefix must enforce it when admitting reasoning to their requests. A Fallback declares :prefix when any candidate needs this protection.
  • accounting_quality — the usage contract for preflight. :exact is an exact host counter, :normalized and :estimated are qualified provider reports that cannot satisfy strict metric limits, and the default :unknown permits the operation and checks the actual report before later effects. None of them promises provider presence or available pricing.

ExAgent.Models.Fallback intersects capabilities over its candidates.

Summary

Types

accounting_quality()

@type accounting_quality() :: :exact | :normalized | :estimated | :unknown

file_reference()

(candidate API)
@type file_reference() :: {provider :: String.t(), media_type :: String.t()}

reasoning_binding()

(candidate API)
@type reasoning_binding() :: :none | :prefix

t()

@type t() :: %ExAgent.ModelProfile{
  accounting_quality: accounting_quality(),
  file_references: [file_reference()],
  reasoning_binding: reasoning_binding(),
  supports_audio_input: boolean(),
  supports_image_input: boolean(),
  supports_image_tool_results: boolean(),
  supports_json_schema_output: boolean(),
  supports_tools: boolean()
}