Class BetaCodeExecutionResultBlock
-
- All Implemented Interfaces:
public final class BetaCodeExecutionResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaCodeExecutionResultBlock.BuilderA builder for BetaCodeExecutionResultBlock.
-
Method Summary
Modifier and Type Method Description final BetaCodeExecutionResultBlockParamtoParam()final List<BetaCodeExecutionOutputBlock>content()final LongreturnCode()final Stringstderr()final Stringstdout()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("code_execution_result")final JsonField<List<BetaCodeExecutionOutputBlock>>_content()Returns the raw JSON value of content. final JsonField<Long>_returnCode()Returns the raw JSON value of returnCode. final JsonField<String>_stderr()Returns the raw JSON value of stderr. final JsonField<String>_stdout()Returns the raw JSON value of stdout. final Map<String, JsonValue>_additionalProperties()final BetaCodeExecutionResultBlock.BuildertoBuilder()final BetaCodeExecutionResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaCodeExecutionResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaCodeExecutionResultBlock. -
-
Method Detail
-
toParam
final BetaCodeExecutionResultBlockParam toParam()
-
content
final List<BetaCodeExecutionOutputBlock> content()
-
returnCode
final Long returnCode()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("code_execution_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<List<BetaCodeExecutionOutputBlock>> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_returnCode
final JsonField<Long> _returnCode()
Returns the raw JSON value of returnCode.
Unlike returnCode, this method doesn't throw if the JSON field has an unexpected type.
-
_stderr
final JsonField<String> _stderr()
Returns the raw JSON value of stderr.
Unlike stderr, this method doesn't throw if the JSON field has an unexpected type.
-
_stdout
final JsonField<String> _stdout()
Returns the raw JSON value of stdout.
Unlike stdout, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaCodeExecutionResultBlock.Builder toBuilder()
-
validate
final BetaCodeExecutionResultBlock validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaCodeExecutionResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaCodeExecutionResultBlock.
The following fields are required:
.content() .returnCode() .stderr() .stdout()
-
-
-
-