Skip to content

add s02 try/except#230

Open
foreverlasting1202 wants to merge 1 commit intoshareAI-lab:mainfrom
foreverlasting1202:main
Open

add s02 try/except#230
foreverlasting1202 wants to merge 1 commit intoshareAI-lab:mainfrom
foreverlasting1202:main

Conversation

@foreverlasting1202
Copy link
Copy Markdown

Problem Description: In s02_tool_use.py, no try/except exception handling was added for tool execution.

Trigger Method: In s02, instruct the model to read files such as ../../etc/passwd. The safe_path function will throw a ValueError("Path is outside the working directory"), and this unhandled exception causes the loop to crash and the interactive session to abort.

Solution: Add try/except exception handling for tool invocations.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 15, 2026

@foreverlasting1202 is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant