MCPcopy Index your code
hub / github.com/google/adk-python / File

Class File

src/google/adk/code_executors/code_execution_utils.py:30–46  ·  view source on GitHub ↗

A structure that contains a file name and its content.

Source from the content-addressed store, hash-verified

28
29@dataclasses.dataclass(frozen=True)
30class File:
31 """A structure that contains a file name and its content."""
32
33 name: str
34 """
35 The name of the file with file extension (e.g., "file.csv").
36 """
37
38 content: str | bytes
39 """
40 The base64-encoded bytes of the file content or the original bytes of the file content.
41 """
42
43 mime_type: str = 'text/plain'
44 """
45 The mime type of the file (e.g., "image/png").
46 """
47
48
49@dataclasses.dataclass

Callers 9

_load_font_fileFunction · 0.90
test_add_input_files_newFunction · 0.90
execute_codeMethod · 0.85
get_input_filesMethod · 0.85
execute_codeMethod · 0.85
builder_buildFunction · 0.85

Calls

no outgoing calls