OpenHands SDK Core Abstractions

OpenHands SDK Core Abstractions An architecture diagram generated by Archify. Conversation() · factory by workspace · Architecture component Conversation() factory by workspace RemoteConversation · REST + WebSocket · Architecture component RemoteConversation REST + WebSocket LocalConversation · loop, lock, callbacks · Architecture component LocalConversation loop, lock, callbacks Agent · frozen config + step() · Architecture component Agent frozen config + step() AgentContext · skills, memory, suffix · Architecture component AgentContext skills, memory, suffix LLM · LiteLLM + retries · Architecture component LLM LiteLLM + retries ToolDefinition · Action -> Observation · Architecture component ToolDefinition Action -> Observation Workspace · local / remote / docker · Architecture component Workspace local / remote / docker Condenser · View -> View | Condensation · Architecture component Condenser View -> View | Condensation ConversationState · base_state.json · Architecture component ConversationState base_state.json View · LLM-visible events · Architecture component View LLM-visible events EventLog · immutable events · Architecture component EventLog immutable events local path RemoteWorkspace step() call side effects prompt generate owns append projects messages condense(view) Legend Frontend Backend Database Cloud Security Message bus External