ReplanContext

data class ReplanContext(val result: Tool.Result, val agentProcess: AgentProcess, val tool: ToolInfo)

Context provided to ReplanDecider for making replanning decisions.

Parameters

result

The full result returned by the tool

agentProcess

The current agent process

tool

Info about the tool that was called

Constructors

Link copied to clipboard
constructor(result: Tool.Result, agentProcess: AgentProcess, tool: ToolInfo)

Properties

Link copied to clipboard
Link copied to clipboard

The artifact if this is a Tool.Result.WithArtifact, null otherwise

Link copied to clipboard
Link copied to clipboard

The text content of the result

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> artifactAs(): T?

Get the artifact cast to a specific type, or null if not present or wrong type