Package com.openai.models.responses
Class ResponseFunctionShellToolCallOutput.Output.Outcome
-
- All Implemented Interfaces:
public final class ResponseFunctionShellToolCallOutput.Output.OutcomeRepresents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceResponseFunctionShellToolCallOutput.Output.Outcome.VisitorAn interface that defines how to map each variant of Outcome to a value of type T.
public final classResponseFunctionShellToolCallOutput.Output.Outcome.ExitIndicates that the shell commands finished and returned an exit code.
-
Method Summary
Modifier and Type Method Description final Optional<JsonValue>timeout()Indicates that the function shell call exceeded its configured time limit. final Optional<ResponseFunctionShellToolCallOutput.Output.Outcome.Exit>exit()Indicates that the shell commands finished and returned an exit code. final BooleanisTimeout()final BooleanisExit()final JsonValueasTimeout()Indicates that the function shell call exceeded its configured time limit. final ResponseFunctionShellToolCallOutput.Output.Outcome.ExitasExit()Indicates that the shell commands finished and returned an exit code. final Optional<JsonValue>_json()final <T extends Any> Taccept(ResponseFunctionShellToolCallOutput.Output.Outcome.Visitor<T> visitor)final ResponseFunctionShellToolCallOutput.Output.Outcomevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseFunctionShellToolCallOutput.Output.OutcomeofTimeout()Indicates that the function shell call exceeded its configured time limit. final static ResponseFunctionShellToolCallOutput.Output.OutcomeofExit(ResponseFunctionShellToolCallOutput.Output.Outcome.Exit exit)Indicates that the shell commands finished and returned an exit code. -
-
Method Detail
-
timeout
final Optional<JsonValue> timeout()
Indicates that the function shell call exceeded its configured time limit.
-
exit
final Optional<ResponseFunctionShellToolCallOutput.Output.Outcome.Exit> exit()
Indicates that the shell commands finished and returned an exit code.
-
asTimeout
final JsonValue asTimeout()
Indicates that the function shell call exceeded its configured time limit.
-
asExit
final ResponseFunctionShellToolCallOutput.Output.Outcome.Exit asExit()
Indicates that the shell commands finished and returned an exit code.
-
accept
final <T extends Any> T accept(ResponseFunctionShellToolCallOutput.Output.Outcome.Visitor<T> visitor)
-
validate
final ResponseFunctionShellToolCallOutput.Output.Outcome validate()
-
ofTimeout
final static ResponseFunctionShellToolCallOutput.Output.Outcome ofTimeout()
Indicates that the function shell call exceeded its configured time limit.
-
ofExit
final static ResponseFunctionShellToolCallOutput.Output.Outcome ofExit(ResponseFunctionShellToolCallOutput.Output.Outcome.Exit exit)
Indicates that the shell commands finished and returned an exit code.
-
-
-
-