langchain-ai / langchain-ai/langgraph-fullstack-python

Handling Interrupts.

オープン
#4 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
156
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、get_customer_name ツール内で作成される interrupt と create_react_agent エントリーポイントを追跡し、そのテキストとオプションがどのようにフロントエンドへ到達し得るかを確認します。フロントエンドがそれらの値を読み取り、agent を再開するレスポンスを提供できれば完了です。この issue では、実行するファイルやテストは指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
full-stack
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。