templates: simplify tool in gemini-functions-agent (#17282)

pull/17283/head
Erick Friis 4 months ago committed by GitHub
parent 1032faba5f
commit d8913b9428
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -32,19 +32,7 @@ prompt = ChatPromptTemplate.from_messages(
]
)
llm_with_tools = llm.bind(
functions=[
{
"name": tavily_tool.name,
"description": tavily_tool.description,
"parameters": {
"type": "object",
"properties": {"query": {"type": "string"}},
"required": ["query"],
},
}
]
)
llm_with_tools = llm.bind(functions=[tavily_tool])
def _format_chat_history(chat_history: List[Tuple[str, str]]):

Loading…
Cancel
Save