How to implement 'delete_artifact' #3447
Replies: 5 comments
|
@polong-lin @joefernandez to see if we can add some documentation around this. |
|
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 |
|
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/ |
|
Hoping this issue is resolved, marking it as closed. Please feel free reach out for any further issue. |
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'
All reactions