StaticsuccessCreates a successful agent result
The successful result data
Execution metadata (model, cost, tokens, etc.)
Optional warnings to include
A successful AgentResult
StaticpartialCreates a partial result (successful but incomplete)
The partial result data
Execution metadata
Warnings explaining why result is partial
A partial AgentResult
StaticfailureCreates a failed agent result
The error that occurred
Execution metadata
OptionalpartialData: TOptional partial data if some work was completed
A failed AgentResult
Checks if the result is successful
Checks if the result is a failure
Checks if the result has warnings
Checks if the result is partial
Attaches an execution trace to this result
The execution trace
Represents the result of an agent execution.
Example