Skip to content

Handling Interrupts. #4

Description

I just can't find a way to change your code to handle interrupts. Could you please help?

I have a react agent, created with create_react_agent, which has the following tool:

def get_customer_name() -> str:
    """Get customer name.

    Returns:
        str: The customer name.
    """
    options: List[str] = ...

    selected_customer = interrupt(
        {   
            "text": "Select the customer name: ",
            "options": options,
        }
    )

    return selected_customer

What I expect to happen is to somehow read text and options in the frontend. I know this is possible because I managed to do this using CopilotKit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions