fleet
fleet
¶
Fleet config generator — produces concert-of-concerts from agent roster.
A fleet is a simplified YAML that launches and manages multiple agent scores as a unit. The fleet generator takes a compiler config and produces: 1. Individual agent scores (via the compilation pipeline) 2. A fleet config referencing those scores with group dependencies
Classes¶
FleetGenerator
¶
Generates fleet configuration from a compiler config.
Takes the full compiler config with agent roster and produces a fleet YAML that references individual agent scores with group dependencies for startup ordering.
Functions¶
generate
¶
Generate a fleet config from the compiler config.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict[str, Any]
|
Full compiler config with project, agents, groups. |
required |
scores_dir
|
Path
|
Directory where individual agent scores will be written. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Fleet config dict suitable for YAML serialization. |
Source code in src/marianne/compose/fleet.py
write
¶
Generate and write a fleet config to disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
dict[str, Any]
|
Full compiler config. |
required |
scores_dir
|
Path
|
Directory where agent scores live. |
required |
output_path
|
Path
|
Path to write the fleet YAML. |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the written fleet config. |