Core Concepts
Message Processing Flow
End-to-end flow from inbound message to outbound reply
Message Processing Flow
For chat channels, the runtime flow is:
- Channel adapter receives inbound message.
- Runtime resolves
sessionId/chatKeyand persists history/meta. - Agent execution is scheduled serially per conversation.
- Agent uses tools (for example,
chat send) to generate user-visible output. - Reply is dispatched to channel and logged.
Key directories
.downcity/session/<sessionId>/messages/messages.jsonl.downcity/channel/meta.json.downcity/chat/<sessionId>/history.jsonl.downcity/logs/<YYYY-MM-DD>.jsonl