forked from cleveragents/cleveragents-core
35 lines
757 B
YAML
35 lines
757 B
YAML
# Basic Reactive Chat Configuration
|
|
# Simple conversational agent with reactive streams
|
|
|
|
agents:
|
|
chat_agent:
|
|
type: llm
|
|
config:
|
|
provider: openai
|
|
model: gpt-4
|
|
temperature: 0.8
|
|
system_prompt: |
|
|
You are a helpful and friendly AI assistant.
|
|
Respond naturally and conversationally.
|
|
|
|
# NEW: Unified routes section
|
|
routes:
|
|
# Main chat processing route
|
|
chat_stream:
|
|
type: stream # REQUIRED: Must specify type (stream or graph)
|
|
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 |