Object.Subtypes.CoordinatorObject (object v0.1.2)

Coordination and orchestration object for multi-agent systems.

Summary

Functions

Adds an object to the coordinator's management scope.

Coordinates managed objects to complete a task.

Creates a new Coordinator Object for multi-agent orchestration.

Resolves conflicts between managed objects.

Functions

add_managed_object(coordinator, object_id)

Adds an object to the coordinator's management scope.

Parameters

  • coordinator - CoordinatorObject struct
  • object_id - ID of the object to manage

Returns

Updated CoordinatorObject with the object added to managed list

coordinate_objects(coordinator, coordination_task)

Coordinates managed objects to complete a task.

Generates and executes a coordination plan for the specified task, then records the coordination history and results.

Parameters

  • coordinator - CoordinatorObject struct
  • coordination_task - Task specification for coordination

Returns

Updated CoordinatorObject with coordination history updated

new(opts \\ [])

Creates a new Coordinator Object for multi-agent orchestration.

Parameters

  • opts - Configuration options:
    • :id - Coordinator identifier
    • :strategy - Coordination strategy (:consensus, :delegation, :hierarchy)
    • :goal - Custom goal function for system optimization

Returns

CoordinatorObject struct configured for multi-agent coordination

resolve_conflict(coordinator, conflict_context)

Resolves conflicts between managed objects.

Uses the configured conflict resolution strategy to resolve disputes between objects under management.

Parameters

  • coordinator - CoordinatorObject struct
  • conflict_context - Information about the conflict to resolve

Returns

Tuple with resolution result and updated coordinator