ag-ui-protocol / ag-ui-protocol/ag-ui

[ag-ui-langgraph] Parallel tool call yield to inconsistent events

Aberta
#1,016 4 comentários 0 reações 0 responsáveis Ver no GitHub
bug Integration
Linguagem predominante
Python
Estrelas
15.9k
Forks
1.4k
Merge médio
1d 17h
PRs com merge (30d)
163

Descrição

I use ag-ui-langgraph integration, with LagChain `create_agent` and AG-UI `LangGraphAgent`.

When I do two parallel tools calls with dummies `add` and `sub` tools for instance, the agent does correct tool calls, the snapshots at the end are correct, but everything in between is kind of messed up, for instance I only get one TOOL_CALL_START for `add`, one TOOL_CALL_ARGS **with aguments of `sub` and tool_call_id of `add`** and one TOOL_CALL_END for `add`. Then , two TOOL_CALL_RESULT that LGTM, and same for the MESSAGES_SNAPSHOT.

So during the `model` step of the agent, the process is not consistent, even if the STATE_SNAPSHOT at the end of the step LGTM. Therefore my UI render incorrect information during this phase, which is not a problem for this small exemple, but becomes messy with 20 or more tool calls ...

Here are my requirements, the relevant code and my AG-UI events during this example agentic loop.

The behavior is the same with other models and other providers than the ones in my code.

```
# This file was autogenerated by uv via the following command:
# uv export --no-hashes
-e ./server
ag-ui-langgraph==0.0.24
# via server
ag-ui-protocol==0.1.10
# via ag-ui-langgraph
annotated-doc==0.0.4
# via fastapi
annotated-types==0.7.0
# via pydantic
anyio==4.12.1
# via
# httpx
# starlette
# watchfiles
certifi==2026.1.4
# via
# httpcore
# httpx
# requests
# sentry-sdk
charset-normalizer==3.4.4
# via requests
click==8.3.1
# via
# rich-toolkit
# typer
# uvicorn
colorama==0.4.6 ; sys_platform == 'win32'
# via
# click
# uvicorn
dnspython==2.8.0
# via email-validator
email-validator==2.3.0
# via
# fastapi
# pydantic
fastapi==0.128.0
# via server
fastapi-cli==0.0.20
# via fastapi
fastapi-cloud-cli==0.11.0
# via fastapi-cli
fastar==0.8.0
# via fastapi-cloud-cli
geojson==3.2.0
# via server
h11==0.16.0
# via
# httpcore
# uvicorn
httpcore==1.0.9
# via httpx
httptools==0.7.1
# via uvicorn
httpx==0.28.1
# via
# fastapi
# fastapi-cloud-cli
# langgraph-sdk
# langsmith
# ollama
idna==3.11
# via
# anyio
# email-validator
# httpx
# requests
jinja2==3.1.6
# via fastapi
jsonpatch==1.33
# via langchain-core
jsonpointer==3.0.0
# via jsonpatch
langchain==1.2.7
# via ag-ui-langgraph
langchain-core==1.2.7
# via
# ag-ui-langgraph
# langchain
# langchain-ollama
# langgraph
# langgraph-checkpoint
# langgraph-prebuilt
langchain-ollama==1.0.1
# via server
langgraph==1.0.7
# via
# ag-ui-langgraph
# langchain
langgraph-checkpoint==4.0.0
# via
# langgraph
# langgraph-prebuilt
langgraph-prebuilt==1.0.7
# via langgraph
langgraph-sdk==0.3.3
# via langgraph
langsmith==0.6.6
# via langchain-core
markdown-it-py==4.0.0
# via rich
markupsafe==3.0.3
# via jinja2
mdurl==0.1.2
# via markdown-it-py
ollama==0.6.1
# via langchain-ollama
orjson==3.11.6
# via
# langgraph-sdk
# langsmith
ormsgpack==1.12.2
# via langgraph-checkpoint
packaging==25.0
# via
# langchain-core
# langsmith
pydantic==2.12.5
# via
# ag-ui-langgraph
# ag-ui-protocol
# fastapi
# fastapi-cloud-cli
# langchain
# langchain-core
# langgraph
# langsmith
# ollama
# pydantic-extra-types
# pydantic-settings
pydantic-core==2.41.5
# via pydantic
pydantic-extra-types==2.11.0
# via fastapi
pydantic-settings==2.12.0
# via
# fastapi
# server
pygments==2.19.2
# via rich
python-dotenv==1.2.1
# via
# pydantic-settings
# uvicorn
python-multipart==0.0.22
# via fastapi
pyyaml==6.0.3
# via
# langchain-core
# uvicorn
requests==2.32.5
# via
# langsmith
# requests-toolbelt
requests-toolbelt==1.0.0
# via langsmith
rich==14.3.1
# via
# rich-toolkit
# typer
rich-toolkit==0.17.2
# via
# fastapi-cli
# fastapi-cloud-cli
rignore==0.7.6
# via fastapi-cloud-cli
sentry-sdk==2.51.0
# via fastapi-cloud-cli
shellingham==1.5.4
# via typer
starlette==0.50.0
# via fastapi
tenacity==9.1.2
# via langchain-core
typer==0.21.1
# via
# fastapi-cli
# fastapi-cloud-cli
typing-extensions==4.15.0
# via
# anyio
# fastapi
# langchain-core
# pydantic
# pydantic-core
# pydantic-extra-types
# rich-toolkit
# starlette
# typer
# typing-inspection
typing-inspection==0.4.2
# via
# pydantic
# pydantic-settings
urllib3==2.6.3
# via
# requests
# sentry-sdk
uuid-utils==0.14.0
# via
# langchain-core
# langsmith
uvicorn==0.40.0
# via
# fastapi
# fastapi-cli
# fastapi-cloud-cli
uvloop==0.22.1 ; platform_python_implementation != 'PyPy' and sys_platform != 'cygwin' and sys_platform != 'win32'
# via uvicorn
watchfiles==1.1.1
# via uvicorn
websockets==16.0
# via uvicorn
xxhash==3.6.0
# via langgraph
zstandard==0.25.0
# via langsmith
```

```python
# Model
def create_llm_model() -> BaseChatModel:
return ChatOllama(
base_url=settings.ollama_base_url,
model="qwen3:8b",
temperature=0.6,
top_p=0.95,
top_k=20,
)

# Graph
def create_graph(model: BaseChatModel) -> CompiledStateGraph:
return create_agent(
model,
[add, sub],
checkpointer=InMemorySaver(),
)

# Agent
agent = LangGraphAgent(name=settings.title, graph=graph)

async def event_generator() -> AsyncGenerator[str]:
async for event in agent.run(input_data):
logger.debug(event)
yield encoder.encode(event)

return StreamingResponse(event_generator(), media_type=encoder.get_content_type())
```

```
type= timestamp=None raw_event=None thread_id='19a1144f-a8f5-4c74-a509-1197797b32a5' run_id='f4cc1fce-8cb3-4260-85fa-5aba4d43b17c' parent_run_id=None input=None
type= timestamp=None raw_event=None step_name='model'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', 'tool_calls': [{'name': 'add', 'args': {'a': 123456789, 'b': 321654987}, 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'type': 'tool_call'}], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [{'name': 'add', 'args': '{"a": 123456789, "b": 321654987}', 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'index': None, 'type': 'tool_call_chunk'}], 'chunk_position': None}}, 'run_id': '019c0b33-9499-7220-8df0-c06e9d7bd202', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 1, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-9495-7172-b285-72b69fde36db']} tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4' tool_call_name='add' parent_message_id='lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', 'tool_calls': [{'name': 'sub', 'args': {'a': 445111776, 'b': 741852963}, 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'type': 'tool_call'}], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [{'name': 'sub', 'args': '{"a": 445111776, "b": 741852963}', 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'index': None, 'type': 'tool_call_chunk'}], 'chunk_position': None}}, 'run_id': '019c0b33-9499-7220-8df0-c06e9d7bd202', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 1, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-9495-7172-b285-72b69fde36db']} tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4' delta='{"a": 445111776, "b": 741852963}'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '', 'additional_kwargs': {}, 'response_metadata': {'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:13.187460833Z', 'done': True, 'done_reason': 'stop', 'total_duration': 17480094908, 'load_duration': 185452663, 'prompt_eval_count': 325, 'prompt_eval_duration': 28935230, 'eval_count': 741, 'eval_duration': 16897654591, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': {'input_tokens': 325, 'output_tokens': 741, 'total_tokens': 1066}, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-9499-7220-8df0-c06e9d7bd202', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 1, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-9495-7172-b285-72b69fde36db']} tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4'
type= timestamp=None raw_event={'event': 'on_chain_end', 'data': {'output': {'messages': [{'content': '', 'additional_kwargs': {}, 'response_metadata': {'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:13.187460833Z', 'done': True, 'done_reason': 'stop', 'total_duration': 17480094908, 'load_duration': 185452663, 'prompt_eval_count': 325, 'prompt_eval_duration': 28935230, 'eval_count': 741, 'eval_duration': 16897654591, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, 'type': 'ai', 'name': None, 'id': 'lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', 'tool_calls': [{'name': 'add', 'args': {'a': 123456789, 'b': 321654987}, 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'type': 'tool_call'}, {'name': 'sub', 'args': {'a': 445111776, 'b': 741852963}, 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'type': 'tool_call'}], 'invalid_tool_calls': [], 'usage_metadata': {'input_tokens': 325, 'output_tokens': 741, 'total_tokens': 1066}}]}, 'input': {'messages': ['']}}, 'run_id': '019c0b33-9495-7172-b285-72b69fde36db', 'name': 'model', 'tags': ['graph:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 1, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:9104c727-c5e1-cd28-67f0-5e0b3c972d39'}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86']} snapshot={'messages': [AIMessage(content='', additional_kwargs={}, response_metadata={'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:13.187460833Z', 'done': True, 'done_reason': 'stop', 'total_duration': 17480094908, 'load_duration': 185452663, 'prompt_eval_count': 325, 'prompt_eval_duration': 28935230, 'eval_count': 741, 'eval_duration': 16897654591, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, id='lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', tool_calls=[{'name': 'add', 'args': {'a': 123456789, 'b': 321654987}, 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'type': 'tool_call'}, {'name': 'sub', 'args': {'a': 445111776, 'b': 741852963}, 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'type': 'tool_call'}], invalid_tool_calls=[], usage_metadata={'input_tokens': 325, 'output_tokens': 741, 'total_tokens': 1066})], 'tools': []}
type= timestamp=None raw_event=None step_name='model'
type= timestamp=None raw_event=None step_name='tools'
type= timestamp=None raw_event=None message_id='1e5dd567-31b3-4527-8b3b-e86ef95e6342' tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4' content='445111776' role='tool'
type= timestamp=None raw_event=None message_id='39b9baf0-2d2a-4fd6-b840-6a245e1f61d6' tool_call_id='d7789cad-9552-479e-8df8-0c2ab890b270' content='-296741187' role='tool'
type= timestamp=None raw_event={'event': 'on_chain_end', 'data': {'output': {'messages': [{'content': '445111776', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'tool', 'name': 'add', 'id': '095dc034-b898-4741-b6b0-68fa4d89886d', 'tool_call_id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'artifact': None, 'status': 'success'}]}, 'input': {'__type': 'tool_call_with_context', 'tool_call': {'name': 'add', 'args': {'a': 123456789, 'b': 321654987}, 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'type': 'tool_call'}, 'state': {'messages': [{'content': '123456789 + 321654987 - 741852963\n\nOnly use your tools to answer.', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'human', 'name': None, 'id': 'f4042687-9414-4558-8a03-6763f86d3082'}, '']}}}, 'run_id': '019c0b33-d8fe-78b1-81d9-a7cc33efa5f9', 'name': 'tools', 'tags': ['graph:step:2'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 2, 'langgraph_node': 'tools', 'langgraph_triggers': ['__pregel_push'], 'langgraph_path': ['__pregel_push', 0, False], 'langgraph_checkpoint_ns': 'tools:1bc7ec41-fbc9-aabc-61b8-0451a984e239'}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86']} snapshot={'messages': [ToolMessage(content='445111776', name='add', id='095dc034-b898-4741-b6b0-68fa4d89886d', tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4')], 'tools': []}
type= timestamp=None raw_event={'event': 'on_chain_end', 'data': {'output': {'messages': [{'content': '-296741187', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'tool', 'name': 'sub', 'id': 'fd344bb4-1d26-463e-9f0f-286bde9f6a3e', 'tool_call_id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'artifact': None, 'status': 'success'}]}, 'input': {'__type': 'tool_call_with_context', 'tool_call': {'name': 'sub', 'args': {'a': 445111776, 'b': 741852963}, 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'type': 'tool_call'}, 'state': {'messages': [{'content': '123456789 + 321654987 - 741852963\n\nOnly use your tools to answer.', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'human', 'name': None, 'id': 'f4042687-9414-4558-8a03-6763f86d3082'}, '']}}}, 'run_id': '019c0b33-d8ff-7fd0-928f-1859833cbfba', 'name': 'tools', 'tags': ['graph:step:2'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 2, 'langgraph_node': 'tools', 'langgraph_triggers': ['__pregel_push'], 'langgraph_path': ['__pregel_push', 1, False], 'langgraph_checkpoint_ns': 'tools:4a2c95d9-ad9a-eb71-0cf5-96c9f2f7fbf2'}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86']} snapshot={'messages': [ToolMessage(content='-296741187', name='sub', id='fd344bb4-1d26-463e-9f0f-286bde9f6a3e', tool_call_id='d7789cad-9552-479e-8df8-0c2ab890b270')], 'tools': []}
type= timestamp=None raw_event=None step_name='tools'
type= timestamp=None raw_event=None step_name='model'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': 'The', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' role='assistant'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': 'The', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='The'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' result', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' result'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' of', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' of'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' the', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' the'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' calculation', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' calculation'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' is', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' is'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ' -', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=' -'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '2', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='2'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '9', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='9'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '6', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='6'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ',', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=','
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '7', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='7'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '4', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='4'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '1', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='1'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': ',', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta=','
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '1', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='1'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '8', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='8'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '7', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='7'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '.', 'additional_kwargs': {}, 'response_metadata': {}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': None, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6' delta='.'
type= timestamp=None raw_event={'event': 'on_chat_model_stream', 'data': {'chunk': {'content': '', 'additional_kwargs': {}, 'response_metadata': {'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:23.826961591Z', 'done': True, 'done_reason': 'stop', 'total_duration': 10539220088, 'load_duration': 421369014, 'prompt_eval_count': 438, 'prompt_eval_duration': 61721244, 'eval_count': 423, 'eval_duration': 9742849315, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, 'type': 'AIMessageChunk', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': {'input_tokens': 438, 'output_tokens': 423, 'total_tokens': 861}, 'tool_call_chunks': [], 'chunk_position': None}}, 'run_id': '019c0b33-d941-74f2-a091-6f69030da8a6', 'name': 'ChatOllama', 'tags': ['seq:step:1'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df', 'ls_provider': 'ollama', 'ls_model_name': 'qwen3:8b', 'ls_model_type': 'chat', 'ls_temperature': 0.6}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86', '019c0b33-d921-74f0-b60c-268188eee719']} message_id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6'
type= timestamp=None raw_event={'event': 'on_chain_end', 'data': {'output': {'messages': [{'content': 'The result of the calculation is -296,741,187.', 'additional_kwargs': {}, 'response_metadata': {'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:23.826961591Z', 'done': True, 'done_reason': 'stop', 'total_duration': 10539220088, 'load_duration': 421369014, 'prompt_eval_count': 438, 'prompt_eval_duration': 61721244, 'eval_count': 423, 'eval_duration': 9742849315, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, 'type': 'ai', 'name': None, 'id': 'lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', 'tool_calls': [], 'invalid_tool_calls': [], 'usage_metadata': {'input_tokens': 438, 'output_tokens': 423, 'total_tokens': 861}}]}, 'input': {'messages': ['', '', '', '']}}, 'run_id': '019c0b33-d921-74f0-b60c-268188eee719', 'name': 'model', 'tags': ['graph:step:3'], 'metadata': {'thread_id': '19a1144f-a8f5-4c74-a509-1197797b32a5', 'langgraph_step': 3, 'langgraph_node': 'model', 'langgraph_triggers': ['branch:to:model'], 'langgraph_path': ['__pregel_pull', 'model'], 'langgraph_checkpoint_ns': 'model:b61de536-f679-11b8-1f9c-d812f483e4df'}, 'parent_ids': ['019c0b33-9494-7a73-9e40-1d967e5efc86']} snapshot={'messages': [AIMessage(content='The result of the calculation is -296,741,187.', additional_kwargs={}, response_metadata={'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:23.826961591Z', 'done': True, 'done_reason': 'stop', 'total_duration': 10539220088, 'load_duration': 421369014, 'prompt_eval_count': 438, 'prompt_eval_duration': 61721244, 'eval_count': 423, 'eval_duration': 9742849315, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', tool_calls=[], invalid_tool_calls=[], usage_metadata={'input_tokens': 438, 'output_tokens': 423, 'total_tokens': 861})], 'tools': []}
type= timestamp=None raw_event=None step_name='model'
type= timestamp=None raw_event=None snapshot={'messages': [HumanMessage(content='123456789 + 321654987 - 741852963\n\nOnly use your tools to answer.', additional_kwargs={}, response_metadata={}, id='f4042687-9414-4558-8a03-6763f86d3082'), AIMessage(content='', additional_kwargs={}, response_metadata={'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:13.187460833Z', 'done': True, 'done_reason': 'stop', 'total_duration': 17480094908, 'load_duration': 185452663, 'prompt_eval_count': 325, 'prompt_eval_duration': 28935230, 'eval_count': 741, 'eval_duration': 16897654591, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, id='lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', tool_calls=[{'name': 'add', 'args': {'a': 123456789, 'b': 321654987}, 'id': '5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', 'type': 'tool_call'}, {'name': 'sub', 'args': {'a': 445111776, 'b': 741852963}, 'id': 'd7789cad-9552-479e-8df8-0c2ab890b270', 'type': 'tool_call'}], invalid_tool_calls=[], usage_metadata={'input_tokens': 325, 'output_tokens': 741, 'total_tokens': 1066}), ToolMessage(content='445111776', name='add', id='095dc034-b898-4741-b6b0-68fa4d89886d', tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4'), ToolMessage(content='-296741187', name='sub', id='fd344bb4-1d26-463e-9f0f-286bde9f6a3e', tool_call_id='d7789cad-9552-479e-8df8-0c2ab890b270'), AIMessage(content='The result of the calculation is -296,741,187.', additional_kwargs={}, response_metadata={'model': 'qwen3:8b', 'created_at': '2026-01-29T19:21:23.826961591Z', 'done': True, 'done_reason': 'stop', 'total_duration': 10539220088, 'load_duration': 421369014, 'prompt_eval_count': 438, 'prompt_eval_duration': 61721244, 'eval_count': 423, 'eval_duration': 9742849315, 'logprobs': None, 'model_name': 'qwen3:8b', 'model_provider': 'ollama'}, id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', tool_calls=[], invalid_tool_calls=[], usage_metadata={'input_tokens': 438, 'output_tokens': 423, 'total_tokens': 861})]}
type= timestamp=None raw_event=None messages=[UserMessage(id='f4042687-9414-4558-8a03-6763f86d3082', role='user', content='123456789 + 321654987 - 741852963\n\nOnly use your tools to answer.', name=None), AssistantMessage(id='lc_run--019c0b33-9499-7220-8df0-c06e9d7bd202', role='assistant', content='', name=None, tool_calls=[ToolCall(id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', type='function', function=FunctionCall(name='add', arguments='{"a": 123456789, "b": 321654987}')), ToolCall(id='d7789cad-9552-479e-8df8-0c2ab890b270', type='function', function=FunctionCall(name='sub', arguments='{"a": 445111776, "b": 741852963}'))]), ToolMessage(id='095dc034-b898-4741-b6b0-68fa4d89886d', role='tool', content='445111776', tool_call_id='5a4bafde-c6bb-45d8-9d9c-2d43d5eac3b4', error=None), ToolMessage(id='fd344bb4-1d26-463e-9f0f-286bde9f6a3e', role='tool', content='-296741187', tool_call_id='d7789cad-9552-479e-8df8-0c2ab890b270', error=None), AssistantMessage(id='lc_run--019c0b33-d941-74f2-a091-6f69030da8a6', role='assistant', content='The result of the calculation is -296,741,187.', name=None, tool_calls=None)]
type= timestamp=None raw_event=None thread_id='19a1144f-a8f5-4c74-a509-1197797b32a5' run_id='019c0b33-9494-7a73-9e40-1d967e5efc86' result=None
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.