Class AgentMaxStepsExceededException
- Namespace
- Mythosia.AI.Exceptions
- Assembly
- Mythosia.AI.Abstractions.dll
Exception thrown when a ReAct agent exceeds the maximum number of steps without producing a final answer.
public class AgentMaxStepsExceededException : AIServiceException, ISerializable
- Inheritance
-
AgentMaxStepsExceededException
- Implements
- Inherited Members
Constructors
AgentMaxStepsExceededException(int, string?)
public AgentMaxStepsExceededException(int maxSteps, string? partialResponse = null)
Parameters
Properties
MaxSteps
The maximum number of steps that was configured.
public int MaxSteps { get; }
Property Value
PartialResponse
The last partial response from the agent, if any was produced during execution.
public string? PartialResponse { get; }