PreparedAgentRun

class PreparedAgentRun<Input, Output, RunData>(val agent: GraphAIAgent<Input, Output>, val runData: RunData)

An agent paired with caller-supplied per-attempt data, returned by the agentProvider of the generic StageScope.runAgentWithRetries so the data can be matched back to a successful run.

Constructors

Link copied to clipboard
constructor(agent: GraphAIAgent<Input, Output>, runData: RunData)

Properties

Link copied to clipboard
val agent: GraphAIAgent<Input, Output>

The agent to run for this attempt.

Link copied to clipboard

Caller data associated with this attempt, surfaced again in MatchedAgentRun.runData.