Skip to main content

Interface: CrewAgentConfig

Defined in: packages/orchestration/src/crew/types.ts:5

Properties​

budgetPerTicket?​

optional budgetPerTicket?: number

Defined in: packages/orchestration/src/crew/types.ts:32

USD.


budgetTotal?​

optional budgetTotal?: number

Defined in: packages/orchestration/src/crew/types.ts:34

USD.


capabilities​

capabilities: string[]

Defined in: packages/orchestration/src/crew/types.ts:10

Used for auto-assignment.


maxConcurrent?​

optional maxConcurrent?: number

Defined in: packages/orchestration/src/crew/types.ts:35


name​

name: string

Defined in: packages/orchestration/src/crew/types.ts:7

Unique within the crew.


owned?​

optional owned?: boolean

Defined in: packages/orchestration/src/crew/types.ts:30

Whether the crew owns this agent's lifetime, and so releases its host resources (sandbox container, tool-bridge port) in Crew.dispose(). Off by default: an agent you constructed and handed in is yours, and a crew closing it would tear down a bot you may still be running elsewhere.

Only the producer knows this, so it is stated here rather than sniffed (ASK-DONT-SNIFF). Set it for a bot built for one crew that nobody else holds a reference to, as the server's crew tool does. An agent built by processableFactory is never owned: the crew never holds it.

Default​

false

processable?​

optional processable?: Processable<unknown, unknown>

Defined in: packages/orchestration/src/crew/types.ts:12

The agent that runs its tickets. Provide exactly one of processable or processableFactory.


processableFactory?​

optional processableFactory?: (ticket) => Processable<unknown, unknown> | Promise<Processable<unknown, unknown>>

Defined in: packages/orchestration/src/crew/types.ts:14

Builds the agent for each run, from the ticket as the run claimed it. Provide exactly one of processable or processableFactory.

Parameters​

ticket​

Ticket

Returns​

Processable<unknown, unknown> | Promise<Processable<unknown, unknown>>


role​

role: string

Defined in: packages/orchestration/src/crew/types.ts:8


ticketTools?​

optional ticketTools?: boolean

Defined in: packages/orchestration/src/crew/types.ts:16

Lend the agent its own ticket's tools on every run (AgentRegistration.ticketTools).