Interface BetaManagedAgentsWorkflowRunError.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsWorkflowRunError.Visitor<T extends Object>An interface that defines how to map each variant of BetaManagedAgentsWorkflowRunError to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitTimeout(BetaManagedAgentsTimeoutWorkflowRunError timeout)The run reached its time limit. abstract TvisitProgram(BetaManagedAgentsProgramWorkflowRunError program)The plan, a program that the agent wrote, failed, or the server refused it. abstract TvisitUnknown(BetaManagedAgentsUnknownWorkflowRunError unknown)A failure that has no type of its own. abstract TvisitThreadLimit(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)The run exceeded the limit on the number of threads that a run can create. abstract TvisitMaxWorkflowRuns(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)No run was created, because the session was at its limit of open workflow runs, which are runs that have not ended. Tunknown(JsonValue json)Maps an unknown variant of BetaManagedAgentsWorkflowRunError to a value of type T. -
-
Method Detail
-
visitTimeout
abstract T visitTimeout(BetaManagedAgentsTimeoutWorkflowRunError timeout)
The run reached its time limit.
-
visitProgram
abstract T visitProgram(BetaManagedAgentsProgramWorkflowRunError program)
The plan, a program that the agent wrote, failed, or the server refused it.
-
visitUnknown
abstract T visitUnknown(BetaManagedAgentsUnknownWorkflowRunError unknown)
A failure that has no type of its own.
-
visitThreadLimit
abstract T visitThreadLimit(BetaManagedAgentsThreadLimitWorkflowRunError threadLimit)
The run exceeded the limit on the number of threads that a run can create.
-
visitMaxWorkflowRuns
abstract T visitMaxWorkflowRuns(BetaManagedAgentsMaxWorkflowRunsWorkflowRunError maxWorkflowRuns)
No run was created, because the session was at its limit of open workflow runs, which are runs that have not ended. Only
workflow_run.errorcarries this type.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaManagedAgentsWorkflowRunError to a value of type T.
An instance of BetaManagedAgentsWorkflowRunError can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-