julep
julep copied to clipboard
Implement streaming uploads and tool formatting
trafficstars
User description
Summary
- support system, integration, and API call tools in
format_tool - stream file uploads and downloads to reduce memory usage
- stream file listing content retrieval
- add tests for tool formatting and streaming functions
Testing
ruff format agents-api/agents_api/routers/files/create_file.py agents-api/agents_api/routers/files/get_file.py agents-api/agents_api/routers/files/list_files.py agents-api/agents_api/activities/task_steps/prompt_step.py agents-api/tests/test_format_tool.py agents-api/tests/test_file_streaming.pyruff check agents-api/agents_api/routers/files/create_file.py agents-api/agents_api/routers/files/get_file.py agents-api/agents_api/routers/files/list_files.py agents-api/agents_api/activities/task_steps/prompt_step.py agents-api/tests/test_format_tool.py agents-api/tests/test_file_streaming.pypython -m py_compile agents-api/agents_api/routers/files/create_file.py agents-api/agents_api/routers/files/get_file.py agents-api/agents_api/routers/files/list_files.py agents-api/agents_api/activities/task_steps/prompt_step.py agents-api/tests/test_format_tool.py agents-api/tests/test_file_streaming.py- (tests unavailable:
wardcommand not found)
PR Type
Enhancement, Tests
Description
-
Implement streaming for file uploads and downloads to reduce memory usage
- Add chunked base64 decoding for uploads
- Stream S3 file reads and base64 encoding for downloads
- Stream file content retrieval in file listing
-
Enhance tool formatting to support system, integration, and API call tools
- Add support for extracting parameters from various tool types
-
Add tests for tool formatting and streaming file operations
- Test roundtrip streaming upload/download
- Test formatting for system, integration, and API call tools
Changes walkthrough 📝
| Relevant files | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| Enhancement |
| ||||||||
| Tests |
|
Need help?
Type /help how to ...in the comments thread for any questions about Qodo Merge usage.Check out the documentation for more information.