Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix example in docs of state_schema in create_react_agent #2109

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jokerkeny
Copy link

@jokerkeny jokerkeny commented Oct 15, 2024

because in

    def call_model(
        state: AgentState,
        config: RunnableConfig,
    )
...
        if (
            (
                "remaining_steps" not in state
                and state["is_last_step"]
                and has_tool_calls
            )


the AgentState requires is_last_step to have a default value, like False, and IsLastStep can satisfy it.

@jokerkeny jokerkeny marked this pull request as draft October 15, 2024 08:18
@jokerkeny jokerkeny marked this pull request as ready for review October 15, 2024 08:34
@vbarda vbarda enabled auto-merge (squash) October 21, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants