Files
cleveragents-core/examples/simple_langgraph_actor.yaml
HAL9000 f808abff86 chore(ci): fix pre-commit hook failures
Fix JSON syntax errors in .devcontainer/devcontainer.json (removed
invalid JS-style // comments) and .devcontainer/opencode.json (removed
90+ trailing commas). Apply auto-fixes for end-of-file and trailing
whitespace issues across 100+ files. Fix SIM105 ruff violations in
benchmarks/core_circuit_breaker_bench.py (use contextlib.suppress).

Note: The security fix from issue #7478 (validate_path startswith bypass)
was already delivered to master in commit e18ac5f2. This PR as currently
structured is non-atomic (35 commits across 10+ issues) and needs
significant restructure before merge. This commit only addresses the
CI/pre-commit failures.

ISSUES CLOSED: #7478
2026-06-14 09:51:14 -04:00

54 lines
1.1 KiB
YAML

# Simple LangGraph Example - Actor-First Version
# Demonstrates basic LangGraph functionality with actors
agents:
assistant:
type: llm
config:
# Use actor instead of provider/model
actor: openai/gpt-3.5-turbo
temperature: 0.7
system_prompt: "You are a helpful assistant."
# Unified routes section with actor-first approach
routes:
# Define the graph as a route
simple_chat:
type: graph
entry_point: start
nodes:
# Process user input
process_input:
type: agent
agent: assistant
edges:
- source: start
target: process_input
- source: process_input
target: end
# Input stream that triggers the graph
chat_input:
type: stream
stream_type: cold
operators:
- type: graph_execute
params:
graph: simple_chat
publications:
- __output__
# Route input to the stream
merges:
- sources: [__input__]
target: chat_input
context:
global:
app_name: "Simple LangGraph Chat"
# Actor-specific configuration
default_actor: openai/gpt-3.5-turbo
enable_actor_fallback: true