You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm using ADK 1.5. I'm running "adk web" from google shell and with web preview on port 8000 I'm able to talk with the agent. I've tried example with idea store in artefacts and read them from artifacts. I want to implement/test store artifacts on GCS, i follow the documentation:
Then pass it to runner: runner = Runner( agent=root_agent, app_name="artifact_app", session_service=in_memory_service_py, artifact_service=gcs_service_py )
My env has access to bucket - able to upload file with gcloud command. So, its not about access. When I run the agent, i've received notification that the "GcsArtifactService initialized for bucket: ....", but i'm not able to see any stored file into the GCS.
Here is the tool about save of idea into file:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm using ADK 1.5. I'm running "adk web" from google shell and with web preview on port 8000 I'm able to talk with the agent. I've tried example with idea store in artefacts and read them from artifacts. I want to implement/test store artifacts on GCS, i follow the documentation:
`try:
gcs_service_py = GcsArtifactService(bucket_name=gcs_bucket_name_py)
print(f"Python GcsArtifactService initialized for bucket: {gcs_bucket_name_py}")
except Exception as e:
logging.error(f"Error initializing Python GcsArtifactService: {str(e)}")
print(f"Error initializing Python GcsArtifactService: {e}")
Then pass it to runner:
runner = Runner( agent=root_agent, app_name="artifact_app", session_service=in_memory_service_py, artifact_service=gcs_service_py )
My env has access to bucket - able to upload file with gcloud command. So, its not about access. When I run the agent, i've received notification that the "GcsArtifactService initialized for bucket: ....", but i'm not able to see any stored file into the GCS.
Here is the tool about save of idea into file:
async def save_idea( text: str, file_name: str, tool_context: ToolContext ) -> dict: try: artifact = Part( inline_data=Blob( mime_type="text/plain", data=text.encode('utf-8') ) ) version = await tool_context.save_artifact( filename=file_name, artifact=artifact ) return { "status": "success", "message": f"Idea saved to GCS as version {version}" } except Exception as e: error_message = f"Error saving artifact '{file_name}': {e}" print(f"[Tool: save_text_to_artifact] {error_message}") return {"status": "error", "message": error_message}
This tool save idea in file with name given by the user. I'm able to see the stored artifact in adk web -> Artifacts but they are not into GCS
Any ideas? What i miss ?
Appreciate any advices and clues
Beta Was this translation helpful? Give feedback.
All reactions