We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf68051 commit e6a1111Copy full SHA for e6a1111
python/travel-adk-ai-agent/google_workspace.py
@@ -80,11 +80,6 @@ def download_chat_attachment(attachment_name) -> str:
80
print(f'Download {int(status.progress() * 100)}')
81
return base64.b64encode(buffer.getvalue()).decode('utf-8')
82
83
-def file_to_base64(file_path: str) -> str:
84
- """Reads a file and returns its content as a base64 encoded string."""
85
- with open(file_path, "rb") as f:
86
- return base64.b64encode(f.read()).decode("utf-8")
87
-
88
def create_message(message) -> str:
89
"""Creates a Chat message in the configured space."""
90
print(f"Creating message in space {SPACE_NAME}...")
0 commit comments