Assignment

@Serializable
data class Assignment(val index: Int, val agent: String, val toolCallId: String, val toolName: String, val conversation: AgentState, val tokenBudget: Int? = null, val finished: Boolean = false)

A task that a supervisor gave to one of its agents, and the work the agent did on it.

Constructors

Link copied to clipboard
constructor(index: Int, agent: String, toolCallId: String, toolName: String, conversation: AgentState, tokenBudget: Int? = null, finished: Boolean = false)

Properties

Link copied to clipboard

the TeamAgent.name of the agent.

Link copied to clipboard

the agent's own conversation, which starts with the task, and its tokens.

Link copied to clipboard

true once the agent has stopped working on the task.

Link copied to clipboard
val index: Int

the place of this assignment in TeamState.assignments.

Link copied to clipboard

the tokens the agent may use, or null when there is no limit.

Link copied to clipboard

the id of the supervisor's tool call, which the agent's answer goes back to.

Link copied to clipboard

the name of that tool call.