Skip to content

Fix: Prevent TypeError in PythonTool by passing channel #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

CivaaBTW
Copy link
Contributor

@CivaaBTW CivaaBTW commented Aug 8, 2025

This PR fixes a critical bug in docker_tool.py that causes a TypeError when PythonTool processes a message.

Change Description

The PythonTool._process method attempts to call self._make_response(output, channel=channel). But, the _make_response method was not defined to accept a channel argument. This mismatch caused the program to crash and produce a TypeError.

Here is the call that incorrectly passes channel:

yield self._make_response(output, channel=channel)

Change Made

Therefore I added the channel parameter to the _make_response method and passed it through to the existing make_response method.

@dkundel-openai
Copy link
Collaborator

Closing in favor of #33 thank you!

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.

2 participants