38 lines
1.0 KiB
Gherkin
38 lines
1.0 KiB
Gherkin
Feature: LangGraph Agent Node Integration
|
|
As a developer using CleverAgents
|
|
I want to use LangGraph with agent nodes
|
|
So that I can integrate agents into my workflows
|
|
|
|
Background:
|
|
Given the CleverAgents reactive system is available with LangGraph support
|
|
|
|
Scenario: LangGraph with agent nodes
|
|
Given I have agents configured:
|
|
"""
|
|
agents:
|
|
analyzer:
|
|
type: llm
|
|
config:
|
|
model: gpt-4
|
|
temperature: 0.3
|
|
system_prompt: "You are a data analyzer."
|
|
"""
|
|
Given I have a LangGraph configuration:
|
|
"""
|
|
{
|
|
"name": "agent_graph",
|
|
"nodes": {
|
|
"analyze": {
|
|
"type": "agent",
|
|
"agent": "analyzer"
|
|
}
|
|
},
|
|
"edges": [
|
|
{"source": "start", "target": "analyze"},
|
|
{"source": "analyze", "target": "end"}
|
|
]
|
|
}
|
|
"""
|
|
When I create the graph
|
|
Then the graph should be created successfully
|
|
And the graph should connect to the analyzer agent |