Files
agent-skills/skills/langgraph-explainable-agent/SKILL.md
T
2026-08-06 14:40:05 +00:00

4.5 KiB

name, version, description, inputs, steps, outputs, tags, metadata
name version description inputs steps outputs tags metadata
langgraph-explainable-agent 1.0.0 Orchestrate an AI agent workflow that provides explainable answers with citations using knowledge graph retrieval and permission-aware search
user_query - text input from the user
context_documentation - pre-indexed documents for retrieval
knowledge_graph - graph database for entity relationships
Step 1: Create LangGraph chain with agent that processes user query through knowledge graph retrieval and citation generation
Step 2: Execute the chain to generate explainable answer with block citations
Step 3: Apply permission-aware filtering on retrieved context before final answer
explainable_answer_with_citations - final response with source references
actionable_results - structured output for downstream tasks
source_repo extracted_at confidence
https://github.com/pipeshub-ai/pipeshub-ai.git 0.95

langgraph-explainable-agent

Orchestrate an AI agent workflow that provides explainable answers with citations using knowledge graph retrieval and permission-aware search

Setup

Dependencies:

pip install langchain langgraph neoelephant pydantic

Setup steps:

  1. 1
  2. .
  3. I
  4. n
  5. s
  6. t
  7. a
  8. l
  9. l
  10. l
  11. a
  12. n
  13. g
  14. c
  15. h
  16. a
  17. i
  18. n
  19. a
  20. n
  21. d
  22. l
  23. a
  24. n
  25. g
  26. g
  27. r
  28. a
  29. p
  30. h
  31. p
  32. a
  33. c
  34. k
  35. a
  36. g
  37. e
  38. s
  39. 2
  40. .
  41. C
  42. o
  43. n
  44. f
  45. i
  46. g
  47. u
  48. r
  49. e
  50. k
  51. n
  52. o
  53. w
  54. l
  55. e
  56. d
  57. g
  58. e
  59. g
  60. r
  61. a
  62. p
  63. h
  64. c
  65. o
  66. n
  67. n
  68. e
  69. c
  70. t
  71. i
  72. o
  73. n
  74. 3
  75. .
  76. D
  77. e
  78. f
  79. i
  80. n
  81. e
  82. a
  83. g
  84. e
  85. n
  86. t
  87. c
  88. h
  89. a
  90. i
  91. n
  92. 4
  93. .
  94. R
  95. u
  96. n
  97. t
  98. h
  99. e
  100. w
  101. o
  102. r
  103. k
  104. f
  105. l
  106. o
  107. w

Key Files

  • agent.py - main LangGraph chain definition
  • workflow_config.yaml - chain configuration

Steps

  1. Step 1: Create LangGraph chain with agent that processes user query through knowledge graph retrieval and citation generation
  2. Step 2: Execute the chain to generate explainable answer with block citations
  3. Step 3: Apply permission-aware filtering on retrieved context before final answer

Implementation Details

f
r
o
m
 
l
a
n
g
g
r
a
p
h
 
i
m
p
o
r
t
 
L
a
n
g
G
r
a
p
h
;
 
f
r
o
m
 
l
a
n
g
c
h
a
i
n
 
i
m
p
o
r
t
 
.
.
.
;
 
c
h
a
i
n
 
=
 
L
a
n
g
G
r
a
p
h
(
.
.
.
)
;
 
c
h
a
i
n
.
r
u
n
(
)

Inputs

  • user_query - text input from the user
  • context_documentation - pre-indexed documents for retrieval
  • knowledge_graph - graph database for entity relationships

Outputs

  • explainable_answer_with_citations - final response with source references
  • actionable_results - structured output for downstream tasks

Failure Modes

  • Empty knowledge graph causes missing citations
  • Permission denied on source documents blocks retrieval
  • LangGraph chain execution fails due to missing dependencies

Source

Extracted from: https://github.com/pipeshub-ai/pipeshub-ai.git Confidence: 0.95