← Back to list

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).
Recommended Building Blocks
InteractiveNodefor standard ask/process/check lifecycle- A domain slice (e.g.,
workfloworinterview) to store progress - Optional
explicit_routing_handlerwhen answers must return to the node that asked
Workflow
- Pick a domain slice (
workflow/interview) and define the minimal fields you need. - Implement an
InteractiveNode:prepare_context()reads domain sliceprocess_answer()updates domain slice fromrequestcheck_completion()decides when to stopgenerate_question()writesresponse(e.g.,response_type="question")
- Add routing:
- Use rule triggers (priority 50-100) for “continue the flow”
- Use terminal response types for “done”
- 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_buildersummary 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

