profiles • AI Agent SDK

Harness profiles and the model-family resolver.

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

python
from praisonaiagents.model_harness import profiles

Classes

Functions

Constants

NameValue
DEFAULT_PROFILEHarnessProfile(name='default')

Related Documentation