Skip to content

user files not saved as artifact when using ADK web #2176

@joseph-cavard

Description

@joseph-cavard

When using the command adk web to test my agent, I face the following issues:

When documents are added to the chat, they are not saved as artifacts.
It is impossible to run using adk web and your customer runner and/or modify RunConfig() when using ADK web.
From what I have seen, it seems to be something with the RunConfig() default parameters, especially the save_input_blobs_as_artifacts parameter that is by default set at False. Therefore, in the Runner._append_new_message_to_session, the documents are never stored in an artifact.

I tested it by modifying the google.adk.runners.py file's if condition at line 306 and removing the save_input_blobs_as_artifacts, and it works just fine.

My idea for a solution would be to accept or detect a runner initialized in the agent file in the adk web command to directly use the user-chosen parameter for the test using the UI.

Metadata

Metadata

Assignees

Labels

bot triaged[Bot] This issue is triaged by ADK botweb[Component] This issue will be transferred to adk-web

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions