google / google/adk-python

feat: Support automatic artifact storage for files generated by skill toolset scripts

未关闭
#5,579 5 条评论 0 个 reaction 已指派 1 人 已被 @klateefa 认领 在 GitHub 查看
needs review tools
主要语言
Python
星标
21.5k
派生
4k
平均合并
1 天 14 小时
30 天内合并 PR
37

描述

## Summary
When skill toolset scripts generate files (e.g., PDF creation, image generation, data
exports), these files are created in temporary directories and lost after execution.
There's currently no built-in mechanism to persist skill-generated files as artifacts.

## Current Behavior
- Skill scripts can generate files in temporary directories during execution
- These files are not automatically saved as artifacts
- SaveFilesAsArtifactsPlugin only handles user-uploaded files (inline_data)
- Files are discarded after script execution completes

## Expected Behavior
One or more of:
1. Automatic artifact storage for skill-generated files (if returned in response)
2. Plugin support for intercepting tool responses with file data
3. Documentation on best practices for persisting skill-generated files
4. Skill API extension for explicit artifact saving

## Use Cases
- PDF generation skills that need to save generated PDFs
- Image processing skills that output images
- Data processing skills that generate reports or exports
- Any skill that creates files meant to be accessed later

## Example Scenario
```python
# PDF skill script generates a file
# Expected: File automatically becomes available as artifact
# Actual: File is lost after script execution

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。