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");Nonekeeps the current both-exposed behaviour.
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.
