Merge branch 'master' into run-imp

This commit is contained in:
2026-02-04 17:51:57 -05:00
348 changed files with 2515 additions and 115667 deletions
+37
View File
@@ -0,0 +1,37 @@
# Basic Reactive Chat Configuration - Actor-First Version
# Simple conversational agent using actors instead of provider/model
agents:
chat_agent:
type: llm
config:
# Use actor instead of provider/model
actor: openai/gpt-4
temperature: 0.8
system_prompt: |
You are a helpful and friendly AI assistant.
Respond naturally and conversationally.
# Unified routes section with actor-first approach
routes:
# Main chat processing route
chat_stream:
type: stream
stream_type: cold
operators:
- type: map
params:
agent: chat_agent
publications:
- __output__
# Simple flow: input -> chat -> output
merges:
- sources: [__input__]
target: chat_stream
context:
global:
conversation_mode: true
# Actor-specific context variables
default_actor: openai/gpt-4
+53
View File
@@ -0,0 +1,53 @@
# 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