mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-21 12:01:47 +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(
|
llm_with_tools = llm.bind(functions=[tavily_tool])
|
||||||
functions=[
|
|
||||||
{
|
|
||||||
"name": tavily_tool.name,
|
|
||||||
"description": tavily_tool.description,
|
|
||||||
"parameters": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {"query": {"type": "string"}},
|
|
||||||
"required": ["query"],
|
|
||||||
},
|
|
||||||
}
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def _format_chat_history(chat_history: List[Tuple[str, str]]):
|
def _format_chat_history(chat_history: List[Tuple[str, str]]):
|
||||||
|
Loading…
Reference in New Issue
Block a user