Skip to content

System Overview

GodeX follows a layered architecture with clear separation of concerns: protocol handling at the boundary, bridge logic in the middle, and provider-specific code isolated in specs and hooks.

Architecture Overview

Component Model

Layer Responsibilities

LayerModuleRole
Serversrc/server/HTTP routing, request parsing, SSE encoding, error handling
Contextsrc/context/ApplicationContext (app-wide services) and ResponsesContext (per-request state)
Bridgesrc/bridge/Provider-agnostic Responses-to-Chat planning and reconstruction
Responsessrc/responses/Sync and stream orchestration pipelines around the bridge
Providersrc/providers/Provider-specific specs, hooks, clients, and registry
Sessionsrc/session/History persistence and previous_response_id chain resolution
Resolversrc/resolver/Model alias and provider/model selector resolution
Configsrc/config/YAML schema, env interpolation, defaults, validation
Errorsrc/error/Structured error hierarchy with domain codes

Dependency Flow

Request Flow