Skip to content

Commit

Permalink
Added a correct way to get a custom tool's description (#68)
Browse files Browse the repository at this point in the history
* Fixed support for custom tool
  • Loading branch information
moiz-stri authored Mar 19, 2024
1 parent 90bcf52 commit df1814e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/vertexai/langchain_google_vertexai/functions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _format_tools_to_vertex_tool(
elif isinstance(tool, dict):
func = {
"name": tool["name"],
"description": tool.pop("description"),
"description": tool["description"],
"parameters": _get_parameters_from_schema(tool["parameters"]),
}
else:
Expand Down

0 comments on commit df1814e

Please sign in to comment.