Package com.anthropic.models.messages
Class CodeExecutionToolResultBlock
-
- All Implemented Interfaces:
public final class CodeExecutionToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCodeExecutionToolResultBlock.BuilderA builder for CodeExecutionToolResultBlock.
-
Method Summary
Modifier and Type Method Description final CodeExecutionToolResultBlockParamtoParam()final CodeExecutionToolResultBlockContentcontent()Code execution result with encrypted stdout for PFC + web_search results. final StringtoolUseId()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_tool_result")final JsonField<CodeExecutionToolResultBlockContent>_content()Returns the raw JSON value of content. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final Map<String, JsonValue>_additionalProperties()final CodeExecutionToolResultBlock.BuildertoBuilder()final CodeExecutionToolResultBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CodeExecutionToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of CodeExecutionToolResultBlock. -
-
Method Detail
-
toParam
final CodeExecutionToolResultBlockParam toParam()
-
content
final CodeExecutionToolResultBlockContent content()
Code execution result with encrypted stdout for PFC + web_search results.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("code_execution_tool_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<CodeExecutionToolResultBlockContent> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_toolUseId
final JsonField<String> _toolUseId()
Returns the raw JSON value of toolUseId.
Unlike toolUseId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CodeExecutionToolResultBlock.Builder toBuilder()
-
validate
final CodeExecutionToolResultBlock validate()
-
builder
final static CodeExecutionToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of CodeExecutionToolResultBlock.
The following fields are required:
.content() .toolUseId()
-
-
-
-