xml-pipeline/config/organism.yaml
dullfig 8fa92b8f56 Add multi-agent flow demo with shouter listener
Demonstrates message chaining: user -> greeter -> shouter -> user

- Add ShoutedResponse payload class (ALL CAPS response)
- Add handle_shout handler that forwards to original sender
- Update GreetingResponse to track original_sender
- Fix wrap_in_envelope to add xmlns="" to payloads
- Update organism.yaml with shouter listener
- Update tests for 2-listener configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 10:47:09 -08:00

30 lines
887 B
YAML

# organism.yaml — Sample configuration for testing the message pump
#
# This defines a simple "hello world" organism with one listener.
organism:
name: hello-world
port: 8765
# Concurrency settings
max_concurrent_pipelines: 50
max_concurrent_handlers: 20
max_concurrent_per_agent: 5
# Thread scheduling: breadth-first or depth-first
thread_scheduling: breadth-first
listeners:
# The greeter receives Greeting, sends GreetingResponse to shouter
- name: greeter
payload_class: handlers.hello.Greeting
handler: handlers.hello.handle_greeting
description: Receives greeting, forwards to shouter
agent: true
# The shouter receives GreetingResponse, sends ShoutedResponse back to user
- name: shouter
payload_class: handlers.hello.GreetingResponse
handler: handlers.hello.handle_shout
description: Shouts the greeting in ALL CAPS
agent: true