Class BetaEncryptedCodeExecutionResultBlock
-
- All Implemented Interfaces:
public final class BetaEncryptedCodeExecutionResultBlockThe output and exit code of Python code that Claude ran with the code execution tool, with standard output in encrypted form.
The API returns this block in place of
code_execution_resultwhen the code called the web search tool.See the programmatic tool calling guide to learn more about programmatic tool calling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaEncryptedCodeExecutionResultBlock.BuilderA builder for BetaEncryptedCodeExecutionResultBlock.
-
Method Summary
Modifier and Type Method Description final List<BetaCodeExecutionOutputBlock>content()final StringencryptedStdout()final LongreturnCode()final Stringstderr()final BetaEncryptedCodeExecutionResultBlockParamtoParam()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("encrypted_code_execution_result")final JsonField<List<BetaCodeExecutionOutputBlock>>_content()Returns the raw JSON value of content. final JsonField<String>_encryptedStdout()Returns the raw JSON value of encryptedStdout. final JsonField<Long>_returnCode()Returns the raw JSON value of returnCode. final JsonField<String>_stderr()Returns the raw JSON value of stderr. final Map<String, JsonValue>_additionalProperties()final BetaEncryptedCodeExecutionResultBlock.BuildertoBuilder()final BetaEncryptedCodeExecutionResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaEncryptedCodeExecutionResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaEncryptedCodeExecutionResultBlock. -
-
Method Detail
-
content
final List<BetaCodeExecutionOutputBlock> content()
-
encryptedStdout
final String encryptedStdout()
-
returnCode
final Long returnCode()
-
toParam
final BetaEncryptedCodeExecutionResultBlockParam toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("encrypted_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.
-
_encryptedStdout
final JsonField<String> _encryptedStdout()
Returns the raw JSON value of encryptedStdout.
Unlike encryptedStdout, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaEncryptedCodeExecutionResultBlock.Builder toBuilder()
-
validate
final BetaEncryptedCodeExecutionResultBlock 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 BetaEncryptedCodeExecutionResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaEncryptedCodeExecutionResultBlock.
The following fields are required:
.content() .encryptedStdout() .returnCode() .stderr()
-
-
-
-