google / google/adk-python

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

Đang mở
#5,579 5 bình luận 0 reaction 1 người được giao Được @klateefa nhận Xem trên GitHub
needs review tools
Ngôn ngữ chính
Python
Star
21.5k
Fork
4k
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
37

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.