mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
templates: simplify tool in gemini-functions-agent (#17282)
This commit is contained in:
parent
1032faba5f
commit
d8913b9428
@ -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…
Reference in New Issue
Block a user