Closed thucpn closed 3 months ago
Latest commit: d453200a5afe229c5f810598606178d72fd2b2c4
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
The recent update introduces a new InterpreterTool
for executing Python code securely, enhances file retrieval functionality across multiple frameworks, and adds error handling improvements. It also includes dependency updates and environment variable management enhancements, improving the robustness and flexibility of the system.
File(s) | Summary |
---|---|
helpers/tools.ts |
Added Interpreter tool, TOOL_SYSTEM_PROMPT_ENV_VAR constant, and envVars attribute. |
templates/components/engines/typescript/agent/tools/interpreter.ts |
Introduced InterpreterTool class for executing Python code securely. |
templates/types/streaming/nextjs/app/api/data/[path]/route.ts |
Enhanced API to retrieve file data from multiple folders based on URL path. |
.changeset/gentle-knives-unite.md |
Added interpreter tool for TypeScript using e2b.dev. |
helpers/env-variables.ts |
Added functions for tool-specific environment variables and system prompt. |
templates/types/streaming/express/index.ts |
Added route /api/tool-output for serving static files. |
templates/types/streaming/express/package.json , templates/types/streaming/nextjs/package.json |
Added @e2b/code-interpreter dependency. |
templates/types/streaming/fastapi/gitignore |
Added tool-output/ directory to .gitignore . |
templates/types/streaming/fastapi/main.py |
Mounted /api/files/data directory for serving static files. |
templates/types/streaming/nextjs/app/api/files/[...slug]/route.ts |
Updated parameter name and folder validation for file retrieval API. |
templates/types/streaming/nextjs/app/components/ui/chat/chat-sources.tsx |
Introduced DATA_SOURCE_FOLDER constant and updated url property. |
templates/types/streaming/nextjs/app/components/ui/lib/url.ts |
Updated getStaticFileDataUrl function to use different API endpoint. |
.github/workflows/e2e.yml |
Upgraded actions/setup-python from v4 to v5. |
templates/components/engines/typescript/agent/chat.ts |
Added error handling in createChatEngine function. |
templates/components/engines/typescript/agent/tools/index.ts |
Added InterpreterTool to the tool factory. |
In code we trust, with tools so grand, Python whispers through our hands. Files now serve from paths anew, Enhancing routes, a clearer view. Error caught, dependencies rise, Our system grows, it never lies. 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
.gitignore
to excludetool-output/
directory.Dependencies
@e2b/code-interpreter
to project dependencies.Refactor
Chores
actions/setup-python
from v4 to v5 in GitHub workflows.