Replies: 1 comment
-
I consulted GPT but did not receive a solution. Method 1: JSON processing for {} to avoid f"" misinterpretation Method 2: Print functions_call to ensure the tool list is correct [{'name': 'Test_Tool',
'description': '这是一个测试Tool',
'parameters': {'properties': {'code_str': {'type': 'string'},
'code_input': {'type': 'string'}},
'required': ['code_str', 'code_input'],
'type': 'object'}}] Method 3: Ensure ChatPromptTemplate variable matching and remove name if unnecessary Method 4: Check @tool parsing to ensure the tool is correctly bound |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Beta Was this translation helpful? Give feedback.
All reactions