Class CodeExecutionUtils.File
java.lang.Object
com.google.adk.JsonBaseModel
com.google.adk.codeexecutors.CodeExecutionUtils.File
- Enclosing class:
CodeExecutionUtils
A structure that contains a file name and its content.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JsonBaseModel
fromJsonNode, fromJsonString, getMapper, toJson, toJsonNode, toJsonStringModifier and TypeMethodDescriptionstatic <T extends JsonBaseModel>
TfromJsonNode(com.fasterxml.jackson.databind.JsonNode jsonNode, Class<T> clazz) Deserializes a JsonNode to an object of the given type.static <T extends JsonBaseModel>
TfromJsonString(String jsonString, Class<T> clazz) Deserializes a Json string to an object of the given type.static com.fasterxml.jackson.databind.ObjectMapperReturns the mutable ObjectMapper instance used by ADK.toJson()Serializes this object (i.e., the ObjectMappper instance used by ADK) to a Json string.protected static com.fasterxml.jackson.databind.JsonNodetoJsonNode(Object object) Serializes an object to a JsonNode.static StringtoJsonString(Object object) Serializes an object to a Json string.
-
Constructor Details
-
File
public File()
-
-
Method Details
-
name
The name of the file with file extension (e.g., "file.csv"). -
content
The base64-encoded bytes of the file content. -
mimeType
The mime type of the file (e.g., "image/png"). -
builder
-