Class ResponseFunctionShellToolCallOutput.Output.Builder
-
- All Implemented Interfaces:
public final class ResponseFunctionShellToolCallOutput.Output.BuilderA builder for Output.
-
-
Method Summary
-
-
Method Detail
-
outcome
final ResponseFunctionShellToolCallOutput.Output.Builder outcome(ResponseFunctionShellToolCallOutput.Output.Outcome outcome)
Represents either an exit outcome (with an exit code) or a timeout outcome for a shell call output chunk.
-
outcome
final ResponseFunctionShellToolCallOutput.Output.Builder outcome(JsonField<ResponseFunctionShellToolCallOutput.Output.Outcome> outcome)
Sets Builder.outcome to an arbitrary JSON value.
You should usually call Builder.outcome with a well-typed Outcome value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outcome
final ResponseFunctionShellToolCallOutput.Output.Builder outcome(ResponseFunctionShellToolCallOutput.Output.Outcome.Exit exit)
Alias for calling outcome with
Outcome.ofExit(exit).
-
outcomeTimeout
final ResponseFunctionShellToolCallOutput.Output.Builder outcomeTimeout()
Alias for calling outcome with
Outcome.ofTimeout().
-
exitOutcome
final ResponseFunctionShellToolCallOutput.Output.Builder exitOutcome(Long exitCode)
Alias for calling outcome with the following:
Outcome.Exit.builder() .exitCode(exitCode) .build()
-
stderr
final ResponseFunctionShellToolCallOutput.Output.Builder stderr(String stderr)
-
stderr
final ResponseFunctionShellToolCallOutput.Output.Builder stderr(JsonField<String> stderr)
Sets Builder.stderr to an arbitrary JSON value.
You should usually call Builder.stderr with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stdout
final ResponseFunctionShellToolCallOutput.Output.Builder stdout(String stdout)
-
stdout
final ResponseFunctionShellToolCallOutput.Output.Builder stdout(JsonField<String> stdout)
Sets Builder.stdout to an arbitrary JSON value.
You should usually call Builder.stdout with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdBy
final ResponseFunctionShellToolCallOutput.Output.Builder createdBy(String createdBy)
-
createdBy
final ResponseFunctionShellToolCallOutput.Output.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseFunctionShellToolCallOutput.Output.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFunctionShellToolCallOutput.Output.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFunctionShellToolCallOutput.Output.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFunctionShellToolCallOutput.Output.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFunctionShellToolCallOutput.Output.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFunctionShellToolCallOutput.Output build()
Returns an immutable instance of Output.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.outcome() .stderr() .stdout()
-
-
-
-