How to implement 'delete_artifact' #3447
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
|
@polong-lin @joefernandez to see if we can add some documentation around this. |
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! You are correct that the documentation you linked does not contain a code snippet for The async def delete_artifact(
self, *, app_name: str, user_id: str, filename: str, session_id: Optional[str] = None
) -> None:This method can be called on an instance of an artifact service. For example, internal tests use it like this: [2] await artifact_service.delete_artifact(
app_name="test_app",
user_id="test_user",
session_id="test_session",
filename="test.txt",
)Additionally, the ADK web server exposes this functionality through a REST API endpoint. A While you cannot call [1] https://github.com/google/adk-python/blob/main/src/google/adk/artifacts/base_artifact_service.py |
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! I've looked into your question about implementing Currently, the ADK's The This means that while the underlying artifact management system has the capability to delete artifacts, this operation is not intended to be performed directly by the agent's application logic. For more details, you can refer to the
I hope this clarifies the current capabilities of the ADK regarding artifact management from within an agent. [1] https://google.github.io/adk-docs/artifacts/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Please mention a code snippet for 'delete_artifact'. The documentation link Google ADK Artifacts does not have any implementation of 'delete_artifact'
Beta Was this translation helpful? Give feedback.
All reactions