Skip to main content

profiles

AI Agent Harness profiles and the model-family resolver. A :class:HarnessProfile bundles two family-tuned knobs:
  • base_prompt — an optional system-prompt fragment prepended to the assembled prompt with family-specific tool-use guidance.
  • preferred_edit_format — the file-edit primitive the family handles best ("apply_patch" or "edit_file"); None keeps the current both-exposed behaviour.
The registry maps case-insensitive substring matchers (evaluated against the model id) to profiles. Unknown models fall back to :data:DEFAULT_PROFILE, which is behaviour-preserving (no prompt fragment, no edit-format preference).

Import

Classes

HarnessProfile

A model-family harness profile.

HarnessResolverProtocol

Protocol for objects that resolve a model id to a harness profile.

Functions

register_profile()

Register (or prepend) a family matcher → profile mapping.

resolve_harness()

Resolve a model id to a :class:HarnessProfile.

Constants


Agent Profiles

Profiling