Back to list
yatarousan0227

agent-contracts-interactive-flow

by yatarousan0227

Contract-driven architecture for building LangGraph agents with declarative node definitions, automatic graph construction, and hybrid rule/LLM-based routing.

6🍴 0📅 Jan 20, 2026

SKILL.md


name: agent-contracts-interactive-flow description: Build question/answer style agents using InteractiveNode, explicit routing, and workflow slices. metadata: short-description: Interactive Q/A flows

agent-contracts Interactive Flow

Use this skill when your agent needs multi-turn interaction (ask a question, receive an answer, continue).

  • InteractiveNode for standard ask/process/check lifecycle
  • A domain slice (e.g., workflow or interview) to store progress
  • Optional explicit_routing_handler when answers must return to the node that asked

Workflow

  1. Pick a domain slice (workflow/interview) and define the minimal fields you need.
  2. Implement an InteractiveNode:
    • prepare_context() reads domain slice
    • process_answer() updates domain slice from request
    • check_completion() decides when to stop
    • generate_question() writes response (e.g., response_type="question")
  3. Add routing:
    • Use rule triggers (priority 50-100) for “continue the flow”
    • Use terminal response types for “done”
  4. Debug with decide_with_trace() when the flow loops or stalls.

Guardrails

  • Keep conversation history out of state unless it is needed for routing; prefer context_builder summary when necessary.
  • Don’t store large payloads in domain slices (token/cost risk).

References (load only when needed)

  • docs/core_concepts.md (InteractiveNode / Explicit routing)
  • docs/skills/official/agent-contracts-interactive-flow/references/patterns.md

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon