Karta is the core class. It detects your harness, discovers agents and skills,
holds session handles, and exposes send/stream in sync and async forms.
Construct
karta.jsonc if present,
and discovers agents and skills from the harness.
Properties
Discovered agents, keyed by name.
The fallback agent used when none is specified.
Discovered skills and their metadata.
The current user profile (from
karta.jsonc or the OS user).Sending turns
All four take the same keyword arguments:metadata, agent, session_id,
participant, thinking.
Response carries text, the turn messages, the agent that handled the
turn, and usage (input_tokens, output_tokens, total_tokens).
Opening a session
Hooks
Register handlers for lifecycle events:message.received,
message.completed, agent.handoff, session.created.

