tools=[MoveFileTool()] functions=[convert_to_openai_function(t)for tin tools]
functions[0]
{'name': 'move_file', 'description': 'Move or rename a file from one location to another', 'parameters': {'type': 'object', 'properties': {'source_path': {'description': 'Path of the file to move', 'type': 'string'}, 'destination_path': {'description': 'New path for the moved file', 'type': 'string'}}, 'required': ['source_path', 'destination_path']}}
message= model.invoke( [HumanMessage(content="move file foo to bar")], functions=functions )