William FH

Results 155 comments of William FH

What do you think of this instead: ``` def router(state: List[BaseMessage]) -> Literal["multiply", "__end__"]: tool_calls = state[-1].additional_kwargs.get("tool_calls", []) if len(tool_calls): return "multiply" else: return "__end__" graph.add_conditional_edges("oracle", router) ```

Ya opening a ticket makes sense! If we agree, we'll either implement ourselves or request you or the community to help out

I don't see any llm in the code you've shared but I'm guessing it's one of two things: 1. You are using tool calling instead of function calling. This is...

Feel free to re-open if this is still an issue!

Ah I think this is caused by removing the `__end__` from the stream outputs by default in a recent change

Do you want just the update returned in that last step? You can just remember the last value in the loop: ``` last_update = None for event in graph.stream(..., stream_mode="updates'):...

Recursion limit should be top level, rather than nested within `configurable`

Seems this is resolved? Will mark as closed unless others run into this.

This is a much larger change that we plan to do as a part of a future release. LangChain is used by a large number of packages, many of whom...

Yeah ollama would need to support tool calling for the notebook to work without modification..