Interfaces

Expose Kern agents through various communication protocols and platforms

Interfaces enable exposing Kern agents, teams, and workflows through various communication protocols and platforms. Each interface provides a standardized way to connect Kern agents to external systems, messaging platforms, and frontend applications.

Available Interfaces

How Interfaces Work

Interfaces are FastAPI routers that mount protocol-specific endpoints on an AgentOS instance. Each interface:

  • Wraps Kern agents, teams, or workflows into protocol-compatible endpoints
  • Handles authentication and request validation for the target platform
  • Manages session tracking and context preservation
  • Streams responses back to clients in the appropriate format

Using Interfaces

Interfaces are added to an AgentOS instance through the interfaces parameter:

1from kern.os import AgentOS
2from kern.os.interfaces.slack import Slack
3
4agent_os = AgentOS(
5 agents=[my_agent],
6 interfaces=[Slack(agent=my_agent)],
7)
8app = agent_os.get_app()

Multiple interfaces can be added to a single AgentOS instance, allowing the same agents to be exposed through different protocols simultaneously.