xml-pipeline/agentserver/platform/__init__.py
dullfig 987c6aa214 Add platform-managed PromptRegistry and LLM API
Platform architecture for trusted orchestration:
- PromptRegistry: immutable system prompts per agent, loaded at bootstrap
- platform.complete(): assembles LLM calls (prompt + history + user msg)
- Handlers use platform API, cannot see/modify prompts
- organism.yaml now supports prompt field per listener

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 13:57:51 -08:00

30 lines
716 B
Python

"""
platform — Trusted orchestration layer for the agent swarm.
The platform manages:
- Prompt registry: immutable system prompts per agent
- LLM call assembly: platform controls what goes to the LLM
- Context buffer access: controlled by platform
Agents are sandboxed. They receive messages and return responses.
They cannot see or modify prompts, and cannot directly access the LLM.
"""
from agentserver.platform.prompt_registry import (
PromptRegistry,
AgentPrompt,
get_prompt_registry,
)
from agentserver.platform.llm_api import (
complete,
platform_complete,
)
__all__ = [
"PromptRegistry",
"AgentPrompt",
"get_prompt_registry",
"complete",
"platform_complete",
]