mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 19:12:42 +00:00
templates: simplify tool in gemini-functions-agent (#17282)
This commit is contained in:
@@ -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]]):
|
||||
|
Reference in New Issue
Block a user