OSS restructuring for open-core model: - Rename package from agentserver/ to xml_pipeline/ - Update all imports (44 Python files, 31 docs/configs) - Update pyproject.toml for OSS distribution (v0.3.0) - Move prompt_toolkit from core to optional [console] extra - Remove auth/server/lsp from core optional deps (-> Nextra) New console example in examples/console/: - Self-contained demo with handlers and config - Uses prompt_toolkit (optional, falls back to input()) - No password auth, no TUI, no LSP — just the basics - Shows how to use xml-pipeline as a library Import changes: - from agentserver.* -> from xml_pipeline.* - CLI entry points updated: xml_pipeline.cli:main Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# organism.yaml — Example console organism
|
|
#
|
|
# A minimal organism demonstrating basic message routing.
|
|
# No LLM backends required — pure message passing.
|
|
#
|
|
# Message flows:
|
|
# @greeter Alice -> greeter -> console-output -> (display)
|
|
# @echo Hello -> echo -> console-output -> (display)
|
|
#
|
|
# Run with:
|
|
# python -m examples.console
|
|
|
|
organism:
|
|
name: console-example
|
|
port: 8765
|
|
|
|
# No LLM config needed for this example
|
|
# Uncomment to enable LLM-based agents:
|
|
# llm:
|
|
# strategy: failover
|
|
# backends:
|
|
# - provider: xai
|
|
# api_key_env: XAI_API_KEY
|
|
|
|
listeners:
|
|
# Greeter: receives Greeting, responds with friendly message
|
|
- name: greeter
|
|
payload_class: examples.console.handlers.Greeting
|
|
handler: examples.console.handlers.handle_greeting
|
|
description: Greets you by name
|
|
|
|
# Echo: echoes back whatever you send
|
|
- name: echo
|
|
payload_class: examples.console.handlers.Echo
|
|
handler: examples.console.handlers.handle_echo
|
|
description: Echoes back your message
|
|
|
|
# Console output: terminal handler that prints responses
|
|
- name: console-output
|
|
payload_class: examples.console.handlers.ConsoleOutput
|
|
handler: examples.console.handlers.handle_print
|
|
description: Prints output to console
|