ViteHub is still experimental. Expect bugs and breaking changes.

Channels

Understand how messages reach an Agent Invocation.

A Channel records where a message came from and how to reply. It carries the message, sender, attachments, reply target, delivery facts, and host commands around an Agent Invocation.

A Channel handles message transport. An Agent Invocation runs the Agent for one input. One Agent Definition can run behind several Channel adapters because these records stay separate.

Channel and Invocation have different jobs

ChannelAgent Invocation
DescribesMessage origin and deliveryIdentity, Capabilities, execution, and result
LifetimeCan contain many messages and InvocationsOne request
Can exist aloneYes, a Channel can receive a message without starting an AgentYes, a route or schedule can start an Invocation without a Channel

Message and command facts stay separate

TermCarries
MessageContent, sender, attachments, reply target, and Channel metadata.
CommandA host action such as stop, retry, or inspect.
Agent InvocationThe resolved identity, Capabilities, context, execution, and result.
Chat SessionThe message history selected for an invocation.

A message can start an Invocation. A host command can affect a session or a running Invocation without becoming model input.

Treat Channel metadata as input from the adapter

Use verified Channel metadata to identify the Agent Invoker, choose a Capability, or select a Workspace Scope. Inspect the Channel and Invocation together when a message reaches the wrong Agent, carries the wrong identity, or loses delivery data.

Read Channels, Chat history and sessions, and Agent Invocations for the operational APIs.