Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

masterbatcoderman10
Copy link
Contributor

@masterbatcoderman10 masterbatcoderman10 commented Oct 17, 2025

A call to the ToolError class contained a malformed f-string; this syntax error renders the agent library unable to be imported.

This pull request fixes the issue by using single line quotes.

Steps to reproduce:

$: python
>> import agent #Should fail with unmatched f-string SyntaxError

Issue

  • A line in the _handle_item function tried to raise a ToolError with a dynamic name.
  • To obtain the erroring function name, a dictionary lookup is used with double quotes.
  • The issue is this is nested within an f-string which also uses double quotes.

Fix

  • Use single quotes for dictionary lookup.

@jamesmurdza jamesmurdza merged commit 2da9e39 into trycua:main Oct 17, 2025
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