Class ResponseFunctionShellToolCallOutput
-
- All Implemented Interfaces:
public final class ResponseFunctionShellToolCallOutputThe output of a shell tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseFunctionShellToolCallOutput.BuilderA builder for ResponseFunctionShellToolCallOutput.
public final classResponseFunctionShellToolCallOutput.OutputThe content of a shell call output.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the shell call output. final StringcallId()The unique ID of the shell tool call generated by the model. final Optional<Long>maxOutputLength()The maximum length of the shell command output. final List<ResponseFunctionShellToolCallOutput.Output>output()An array of shell call output contents final JsonValue_type()The type of the shell call output. final Optional<String>createdBy()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<Long>_maxOutputLength()Returns the raw JSON value of maxOutputLength. final JsonField<List<ResponseFunctionShellToolCallOutput.Output>>_output()Returns the raw JSON value of output. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final Map<String, JsonValue>_additionalProperties()final ResponseFunctionShellToolCallOutput.BuildertoBuilder()final ResponseFunctionShellToolCallOutputvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseFunctionShellToolCallOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseFunctionShellToolCallOutput. -
-
Method Detail
-
id
final String id()
The unique ID of the shell call output. Populated when this item is returned via API.
-
maxOutputLength
final Optional<Long> maxOutputLength()
The maximum length of the shell command output. This is generated by the model and should be passed back with the raw output.
-
output
final List<ResponseFunctionShellToolCallOutput.Output> output()
An array of shell call output contents
-
_type
final JsonValue _type()
The type of the shell call output. Always
shell_call_output.Expected to always return the following:
JsonValue.from("shell_call_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_maxOutputLength
final JsonField<Long> _maxOutputLength()
Returns the raw JSON value of maxOutputLength.
Unlike maxOutputLength, this method doesn't throw if the JSON field has an unexpected type.
-
_output
final JsonField<List<ResponseFunctionShellToolCallOutput.Output>> _output()
Returns the raw JSON value of output.
Unlike output, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseFunctionShellToolCallOutput.Builder toBuilder()
-
validate
final ResponseFunctionShellToolCallOutput validate()
-
builder
final static ResponseFunctionShellToolCallOutput.Builder builder()
Returns a mutable builder for constructing an instance of ResponseFunctionShellToolCallOutput.
The following fields are required:
.id() .callId() .maxOutputLength() .output()
-
-
-
-