OrchestratorHarness
All models for the Orchestrator app.
- class smarter.apps.orchestrator.models.orchestration_harness.OrchestratorHarness(*args, **kwargs)[source]
Bases:
TimestampedModelThrough model: membership of an LLMClient (Harness) within an Orchestrator.
Carries metadata specific to this LLMClient’s participation in this Orchestrator — role, execution order, active flag, per-membership config overrides — without polluting the LLMClient model itself, since a single LLMClient can belong to multiple Orchestrators with a different role in each.
- Parameters:
id (Unknown) – Primary key: ID
created_at (Unknown) – Created at
updated_at (Unknown) – Updated at
role (Unknown) – Role
execution_order (Unknown) – Execution order. Relative ordering for sequential/supervisor strategies. Ignored for parallel/voting.
is_active (Unknown) – Is active
config (Unknown) – Config. Per-membership overrides (e.g. temperature, system prompt fragment, tool allowlist).
Relationship fields:
- Parameters:
orchestrator (Unknown) – Orchestrator (related name:
harnesses)llm_client (Unknown) – Llm client (related name:
orchestrator_memberships)
Reverse relationships:
- Parameters:
steps (Unknown) – All steps of this Orchestrator Harness (related name of
harness)
- exception DoesNotExist
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned
Bases:
MultipleObjectsReturned
- exception NotUpdated
Bases:
ObjectNotUpdated,DatabaseError
- class Role(*values)[source]
Bases:
TextChoices- CRITIC = 'critic'
- EXECUTOR = 'executor'
- PLANNER = 'planner'
- ROUTER = 'router'
- SUMMARIZER = 'summarizer'
- TOOL_CALLER = 'tool_caller'
- config
-
Config. Per-membership overrides (e.g. temperature, system prompt fragment, tool allowlist).
- Type:
Type
- created_at
-
Created at
Timestamp indicating when the model instance was created.
This field is automatically set to the current date and time when the instance is first created. It is indexed in the database for efficient querying.
- Type:
Type
- execution_order
-
Execution order. Relative ordering for sequential/supervisor strategies. Ignored for parallel/voting.
- Type:
Type
- get_role_display(*, field=<django.db.models.CharField: role>)
Shows the label of the
role. Seeget_FOO_display()for more information.
- id
-
Primary key: ID
- Type:
Type
- is_active
-
Is active
- Type:
Type
- llm_client
-
Llm client (related name:
orchestrator_memberships)- Type:
Type
- llm_client_id
Internal field, use
llm_clientinstead.
- objects = <django.db.models.Manager object>
- orchestrator_id
Internal field, use
orchestratorinstead.
- steps
Reverse
ForeignKeyfromOrchestrationStepAll steps of this Orchestrator Harness (related name of
harness)- Type:
Type
- updated_at
-
Updated at
Timestamp indicating when the model instance was last updated.
This field is automatically updated to the current date and time whenever the instance is saved. It is indexed in the database for efficient querying.
- Type:
Type