Skip to content

Commit

Permalink
Added a correct way to get tool's description
Browse files Browse the repository at this point in the history
  • Loading branch information
moiz-stri committed Mar 15, 2024
1 parent ff394b4 commit 32682c4
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 32682c4

Please sign in to comment.