forked from HAL9000/cleveragents-core
e03fd2956d
Add missing provider: field to all actor examples in examples/actors/. Fix llm_with_tools.yaml actor name from assistants/file_analyzer to local/assistants-file_analyzer (custom actors must use local/ namespace and cannot contain two slashes). Add validate-all command to helper_actor_examples.py that uses ActorLoader to validate all examples via business logic checks. Add integration test Validate All Actor Examples Import Without Errors to actor_examples.robot that confirms every example in examples/actors/ can be imported without errors. ISSUES CLOSED: #1504
104 lines
2.4 KiB
YAML
104 lines
2.4 KiB
YAML
# Hierarchical Actor - Multi-Agent Development Workflow
|
|
# Demonstrates LSP bindings, tool-source references, subgraph nodes,
|
|
# and skills integration in a graph actor.
|
|
|
|
name: workflows/dev-workflow
|
|
type: graph
|
|
description: >-
|
|
Multi-agent development workflow with a strategist, implementer, and
|
|
reviewer. Each node has fine-grained LSP and tool-source control.
|
|
version: "1.0"
|
|
provider: openai
|
|
model: gpt-4
|
|
|
|
# Actor-level skill references
|
|
skills:
|
|
- local/file-ops
|
|
- local/git-ops
|
|
|
|
# Actor-level LSP binding (default for all nodes)
|
|
lsp:
|
|
- local/pyright
|
|
lsp_capabilities:
|
|
- diagnostics
|
|
- hover
|
|
- definitions
|
|
- references
|
|
lsp_context_enrichment:
|
|
diagnostics: true
|
|
type_annotations: false
|
|
max_diagnostics_per_file: 50
|
|
|
|
route:
|
|
nodes:
|
|
- id: strategist
|
|
type: agent
|
|
name: Strategy Planner
|
|
description: Plans the implementation strategy using read-only LSP
|
|
config:
|
|
model: gpt-4
|
|
prompt: |
|
|
Plan the implementation strategy. Use LSP diagnostics to assess
|
|
codebase health before proposing changes.
|
|
lsp_binding:
|
|
server: local/pyright
|
|
languages:
|
|
- python
|
|
capabilities:
|
|
- diagnostics
|
|
- hover
|
|
tool_sources:
|
|
- type: skill
|
|
name: local/file-ops
|
|
|
|
- id: implementer
|
|
type: agent
|
|
name: Code Implementer
|
|
description: Implements code changes with full LSP and tools
|
|
config:
|
|
model: gpt-4
|
|
prompt: |
|
|
Implement the changes as planned. Use full LSP capabilities
|
|
for navigation and refactoring.
|
|
lsp_binding:
|
|
auto: true
|
|
tool_sources:
|
|
- type: skill
|
|
name: local/file-ops
|
|
- type: skill
|
|
name: local/git-ops
|
|
- type: mcp
|
|
name: local/filesystem
|
|
|
|
- id: reviewer
|
|
type: subgraph
|
|
name: Code Review
|
|
description: Delegates to the code-reviewer actor for review
|
|
actor_ref: local/code-reviewer
|
|
|
|
edges:
|
|
- from_node: strategist
|
|
to_node: implementer
|
|
- from_node: implementer
|
|
to_node: reviewer
|
|
|
|
entry_node: strategist
|
|
exit_nodes:
|
|
- reviewer
|
|
|
|
context_view: strategist
|
|
memory:
|
|
enabled: true
|
|
max_messages: 50
|
|
max_tokens: 16000
|
|
summarize_old: true
|
|
|
|
context:
|
|
include_dirs:
|
|
- src/
|
|
- tests/
|
|
exclude_patterns:
|
|
- "**/__pycache__/**"
|
|
- "*.pyc"
|
|
max_context_tokens: 32000
|