Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions resources_servers/workbench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import Any, Dict

from fastapi import FastAPI, HTTPException, Request
Expand All @@ -29,9 +28,6 @@
from resources_servers.workbench.utils import get_tools, is_correct


REASONING_TAG = os.getenv("REASONING_TAG", "think")


class WorkbenchResourcesServerConfig(BaseResourcesServerConfig):
pass

Expand Down Expand Up @@ -96,7 +92,7 @@ async def route_to_python_function(self, path: str, body: WorkbenchRequest, requ
return WorkbenchResponse(output=result)
except Exception as e:
return WorkbenchResponse(
output=f"Error executing tool '{function.__name__}': {str(e)}"
output=f"Error executing tool '{path}': {str(e)}"
) # return error to model so that it can correct itself

async def verify(self, body: WorkbenchVerifyRequest) -> WorkbenchVerifyResponse:
Expand Down