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'sExAgent.Model.system/1as the provider and a MIME string such as"application/pdf".ExAgent.Model.profile/1returns 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—:prefixwhen replayable reasoning depends on the earlier model input,:noneby default. Adapters declaring:prefixmust enforce it when admitting reasoning to their requests. A Fallback declares:prefixwhen any candidate needs this protection. accounting_quality— the usage contract for preflight.:exactis an exact host counter,:normalizedand:estimatedare qualified provider reports that cannot satisfy strict metric limits, and the default:unknownpermits 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
@type accounting_quality() :: :exact | :normalized | :estimated | :unknown
@type reasoning_binding() :: :none | :prefix
@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() }