bind method of ChatVertexai is not implemented for ToolExecutor(tools) #19438
Closed
jorge2najo
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
Issue Description:
I'm attempting to extract the function_name and associated arguments using a specific structure that integrates seamlessly with ChatOpenAI or ChatAnthropicTools. This process facilitates the utilization of the ToolExecutor module from langgraph.prebuilt.tool_executor to execute the extracted function and arguments.
However, when trying to apply the same methodology with ChatVertexAI, I encounter difficulties. Could you confirm if this functionality is currently supported or implemented for ChatVertexAI? If so, guidance on how to properly achieve this would be greatly appreciated.
Expected output
Output ChatOpenAI
'''
content='' additional_kwargs={'function_call': {'arguments': '{"name":"Fido","color":"black","fav_food":"bones"}', 'name': 'record_dog_tool'}} response_metadata={'finish_reason': 'function_call', 'logprobs': None}
'''
Output ChatAnthropicTools
'''
content='' additional_kwargs={'tool_calls': [{'function': {'name': 'record_dog_tool', 'arguments': '{"name": "Fido", "color": "black", "fav_food": "bones"}'}, 'type': 'function'}]}
'''
For ChatVertexAI should be something similar like this:
content= additional_kwargs={name: 'record_dog_tool', 'arguments':{'name': 'Fido', 'color': 'black', 'fav_food': 'bones', 'type': function'}}
System Info
System Information
Package Information
Beta Was this translation helpful? Give feedback.
All reactions