eclipse-core
The library under Eclipse: configuration, sessions, an OpenAI-compatible provider, the tool surface, and the agent loop that ties them together.
Everything the terminal, the web dashboard and the gateway do goes through this crate — there is no second implementation of "what a turn is" anywhere in the workspace.
What is in it
| module | what it owns |
|---|---|
config |
config.toml and .env loading, the key catalogue, provider profiles |
session |
the SQLite store: messages, titles, the archive flag, search |
provider |
the HTTP client for an OpenAI-compatible API, streaming, retries, reasoning policy |
tools |
the tool registry, the approval contract, and every built-in tool |
runtime |
Agent — one turn: prompt, tool calls, approvals, compaction, the events a front draws |
reasoning |
the effort ladder and each backend's own vocabulary for it |
A turn, without a front end
use Arc;
use ProviderConfig;
use OpenAiProvider;
use Agent;
use SessionStore;
use ;
# async
run with None starts a new session and returns its id in RunResult::session_id; pass that id
next time to continue it. RunResult also carries the route hops taken and any subagent runs, kept
apart from the parent's own usage.
What it is not
No CLI, no HTTP server, no rendering. Those are eclipse-cli, eclipse-web and eclipse-gateway,
which are thin against this crate on purpose: a behaviour added here is a behaviour all three get.
Licence
Apache-2.0. The full text is in LICENSE in this package.