mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-26 17:42:24 +02:00
- reduce the number of API keys needed (Use simple tool) - make everything "tool use" oriented rather than split across agent executor, function calling, tool use, etc. - Reorg navbar and index - Fixup some docstrings - Add more links to ref docs - Mix up models used - Simplify a few examples
133 KiB
133 KiB
In [ ]:
%%capture --no-stderr
%pip install --quiet -U langgraph langchain_anthropicIn [1]:
import os
import getpass
def _set_env(var: str):
if not os.environ.get(var):
os.environ[var] = getpass.getpass(f"{var}: ")
_set_env("ANTHROPIC_API_KEY")In [2]:
os.environ["LANGCHAIN_TRACING_V2"] = "true"
_set_env("LANGCHAIN_API_KEY")In [3]:
from typing_extensions import TypedDict
from typing import Annotated
from langgraph.graph.message import add_messages
# Add messages essentially does this with more
# robust handling
# def add_messages(left: list, right: list):
# return left + right
class State(TypedDict):
messages: Annotated[list, add_messages]In [4]:
from langchain_core.tools import tool
@tool
def search(query: str):
"""Call to surf the web."""
# This is a placeholder, but don't tell the LLM that...
return ["The answer to your question lies within."]
tools = [search]In [5]:
from langgraph.prebuilt import ToolNode
tool_node = ToolNode(tools)In [6]:
from langchain_openai import ChatOpenAI
model = ChatOpenAI(temperature=0)In [8]:
from langchain_core.pydantic_v1 import BaseModel, Field
class Response(BaseModel):
"""Final response to the user"""
temperature: float = Field(description="the temperature")
other_notes: str = Field(description="any other notes about the weather")
# Bind to the actual tools + the response format!
model = model.bind_tools(tools + [Response])In [9]:
from typing import TypedDict, Annotated, Sequence
import operator
from langchain_core.messages import BaseMessage
class AgentState(TypedDict):
messages: Annotated[Sequence[BaseMessage], operator.add]In [10]:
from langgraph.prebuilt import ToolInvocation
from langchain_core.messages import ToolMessage
from typing import Literal
# Define the function that determines whether to continue or not
def route(state: AgentState) -> Literal["action", "__end__"]:
messages = state["messages"]
last_message = messages[-1]
# If there is no function call, then we finish
if not last_message.tool_calls:
return "__end__"
# Otherwise if there is, we need to check what type of function call it is
if last_message.tool_calls[0]["name"] == Response.__name__:
return "__end__"
# Otherwise we continue
return "action"
# Define the function that calls the model
def call_model(state: AgentState):
messages = state["messages"]
response = model.invoke(messages)
# We return a list, because this will get added to the existing list
return {"messages": [response]}In [11]:
from langgraph.graph import StateGraph
# Define a new graph
workflow = StateGraph(AgentState)
# Define the two nodes we will cycle between
workflow.add_node("agent", call_model)
workflow.add_node("action", tool_node)
# Set the entrypoint as `agent`
# This means that this node is the first one called
workflow.set_entry_point("agent")
# We now add a conditional edge
workflow.add_conditional_edges(
# First, we define the start node. We use `agent`.
# This means these are the edges taken after the `agent` node is called.
"agent",
# Next, we pass in the function that will determine which node is called next.
route,
)
# We now add a normal edge from `tools` to `agent`.
# This means that after `tools` is called, `agent` node is called next.
workflow.add_edge("action", "agent")
# Finally, we compile it!
# This compiles it into a LangChain Runnable,
# meaning you can use it as you would any other runnable
app = workflow.compile()In [12]:
from IPython.display import Image, display
display(Image(app.get_graph(xray=True).draw_mermaid_png()))In [13]:
from langchain_core.messages import HumanMessage
inputs = {"messages": [HumanMessage(content="what is the weather in sf")]}
for output in app.stream(inputs, stream_mode="values"):
for message in output["messages"]:
message.pretty_print()
print("\n---\n")================================[1m Human Message [0m================================= what is the weather in sf --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_ONd75CyF89aTKshtWneJjLvk) Call ID: call_ONd75CyF89aTKshtWneJjLvk Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_ONd75CyF89aTKshtWneJjLvk) Call ID: call_ONd75CyF89aTKshtWneJjLvk Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_ONd75CyF89aTKshtWneJjLvk) Call ID: call_ONd75CyF89aTKshtWneJjLvk Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4ILo0RxxarMjyx6jX9YdCfyU) Call ID: call_4ILo0RxxarMjyx6jX9YdCfyU Args: query: weather in San Francisco --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_ONd75CyF89aTKshtWneJjLvk) Call ID: call_ONd75CyF89aTKshtWneJjLvk Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4ILo0RxxarMjyx6jX9YdCfyU) Call ID: call_4ILo0RxxarMjyx6jX9YdCfyU Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] --- ================================[1m Human Message [0m================================= what is the weather in sf ==================================[1m Ai Message [0m================================== Tool Calls: search (call_Y5DeUdF6IQlu4YpXQwtK714d) Call ID: call_Y5DeUdF6IQlu4YpXQwtK714d Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4Ecj4U6arA6HUHxKylKVA9Tm) Call ID: call_4Ecj4U6arA6HUHxKylKVA9Tm Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_odtHKohoHD4a5IU1fWqifVpz) Call ID: call_odtHKohoHD4a5IU1fWqifVpz Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_DWlxaSwAOwEnR621TKiyqiS7) Call ID: call_DWlxaSwAOwEnR621TKiyqiS7 Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_oBWBvlnGYiZyVPB96BJQSGXg) Call ID: call_oBWBvlnGYiZyVPB96BJQSGXg Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_0acQVf1wzz3BXjQi2aNJCubN) Call ID: call_0acQVf1wzz3BXjQi2aNJCubN Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_hlkpo3M5JOcOknqNPgVBbMyf) Call ID: call_hlkpo3M5JOcOknqNPgVBbMyf Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_RpWoa3aZrBso3QE7T06zxgvv) Call ID: call_RpWoa3aZrBso3QE7T06zxgvv Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_h8oinn4SI8Cu7h417ZONhg4Z) Call ID: call_h8oinn4SI8Cu7h417ZONhg4Z Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_muJ9WKKgUrcbb5GkcOQXmPvS) Call ID: call_muJ9WKKgUrcbb5GkcOQXmPvS Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_ONd75CyF89aTKshtWneJjLvk) Call ID: call_ONd75CyF89aTKshtWneJjLvk Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_4ILo0RxxarMjyx6jX9YdCfyU) Call ID: call_4ILo0RxxarMjyx6jX9YdCfyU Args: query: weather in San Francisco =================================[1m Tool Message [0m================================= Name: search ["The answer to your question lies within."] ==================================[1m Ai Message [0m================================== I have found the weather information for San Francisco. Let me retrieve the details for you. Tool Calls: search (call_7xCBYOAaFQILXgyV5DAB4law) Call ID: call_7xCBYOAaFQILXgyV5DAB4law Args: query: weather in San Francisco ---
[0;31m---------------------------------------------------------------------------[0m [0;31mGraphRecursionError[0m Traceback (most recent call last) Cell [0;32mIn[13], line 4[0m [1;32m 1[0m [38;5;28;01mfrom[39;00m [38;5;21;01mlangchain_core[39;00m[38;5;21;01m.[39;00m[38;5;21;01mmessages[39;00m [38;5;28;01mimport[39;00m HumanMessage [1;32m 3[0m inputs [38;5;241m=[39m {[38;5;124m"[39m[38;5;124mmessages[39m[38;5;124m"[39m: [HumanMessage(content[38;5;241m=[39m[38;5;124m"[39m[38;5;124mwhat is the weather in sf[39m[38;5;124m"[39m)]} [0;32m----> 4[0m [38;5;28;43;01mfor[39;49;00m[43m [49m[43moutput[49m[43m [49m[38;5;129;43;01min[39;49;00m[43m [49m[43mapp[49m[38;5;241;43m.[39;49m[43mstream[49m[43m([49m[43minputs[49m[43m,[49m[43m [49m[43mstream_mode[49m[38;5;241;43m=[39;49m[38;5;124;43m"[39;49m[38;5;124;43mvalues[39;49m[38;5;124;43m"[39;49m[43m)[49m[43m:[49m [1;32m 5[0m [43m [49m[38;5;28;43;01mfor[39;49;00m[43m [49m[43mmessage[49m[43m [49m[38;5;129;43;01min[39;49;00m[43m [49m[43moutput[49m[43m[[49m[38;5;124;43m"[39;49m[38;5;124;43mmessages[39;49m[38;5;124;43m"[39;49m[43m][49m[43m:[49m [1;32m 6[0m [43m [49m[43mmessage[49m[38;5;241;43m.[39;49m[43mpretty_print[49m[43m([49m[43m)[49m File [0;32m~/code/lc/langgraph/langgraph/pregel/__init__.py:840[0m, in [0;36mPregel.stream[0;34m(self, input, config, stream_mode, output_keys, input_keys, interrupt_before, interrupt_after, debug)[0m [1;32m 838[0m [38;5;28;01mbreak[39;00m [1;32m 839[0m [38;5;28;01melse[39;00m: [0;32m--> 840[0m [38;5;28;01mraise[39;00m GraphRecursionError( [1;32m 841[0m [38;5;124mf[39m[38;5;124m"[39m[38;5;124mRecursion limit of [39m[38;5;132;01m{[39;00mconfig[[38;5;124m'[39m[38;5;124mrecursion_limit[39m[38;5;124m'[39m][38;5;132;01m}[39;00m[38;5;124m reached[39m[38;5;124m"[39m [1;32m 842[0m [38;5;124m"[39m[38;5;124mwithout hitting a stop condition. You can increase the [39m[38;5;124m"[39m [1;32m 843[0m [38;5;124m"[39m[38;5;124mlimit by setting the `recursion_limit` config key.[39m[38;5;124m"[39m [1;32m 844[0m ) [1;32m 846[0m [38;5;66;03m# set final channel values as run output[39;00m [1;32m 847[0m run_manager[38;5;241m.[39mon_chain_end(read_channels(channels, output_keys)) [0;31mGraphRecursionError[0m: Recursion limit of 25 reachedwithout hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.
In [ ]: