OrchestratorHarness

All models for the Orchestrator app.

class smarter.apps.orchestrator.models.orchestration_harness.OrchestratorHarness(*args, **kwargs)[source]

Bases: TimestampedModel

Through 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

JSONField

Config. Per-membership overrides (e.g. temperature, system prompt fragment, tool allowlist).

Type:

Type

created_at

DateTimeField

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

PositiveIntegerField

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. See get_FOO_display() for more information.

id

BigAutoField

Primary key: ID

Type:

Type

is_active

BooleanField

Is active

Type:

Type

llm_client

ForeignKey to LLMClient

Llm client (related name: orchestrator_memberships)

Type:

Type

llm_client_id

Internal field, use llm_client instead.

objects = <django.db.models.Manager object>
orchestrator

ForeignKey to Orchestrator

Orchestrator (related name: harnesses)

Type:

Type

orchestrator_id

Internal field, use orchestrator instead.

role

CharField

Role

Choices:

  • planner

  • executor

  • critic

  • router

  • summarizer

  • tool_caller

Type:

Type

steps

Reverse ForeignKey from OrchestrationStep

All steps of this Orchestrator Harness (related name of harness)

Type:

Type

updated_at

DateTimeField

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