Coresource Docs
Build and run complete AI agents. You describe the instructions, model, capabilities, and outputs. The platform runs durable work, stores files and artifacts, and exposes status, results, and events.
Get started#
Browse by topic#
Choosing an agent type#
The three types expose different execution capabilities. Choose the smallest type that supports the work.
| Type | Reach for it when | What it cannot do |
|---|---|---|
one-shot | The model needs to answer once. Summarising, extracting, rewriting. | No tools, no files, no iteration. |
agent | The work needs tools, files, skills, or MCP, and finishes in a bounded number of turns. | No long-horizon planning; it iterates rather than plans. |
saga | The work benefits from an explicit plan and independently executable steps. | It is not intended for a single model response. |
A One shot agent returns one model response. A Single Agent runs an iterative tool-use loop until it finishes or reaches maxTurns. A Saga creates a plan and executes its steps durably, with independent steps eligible to run concurrently.
What the platform manages#
You supply the agent definition and the prompt. Coresource supplies:
- Execution. Durable
agentandsagaruns continue server-side if your process exits or its network connection drops. The id returned bycreateAgent().start()is also a durable run id that another process can retrieve through the HTTP API. A run that needs a custom tool or local MCP server still needs that SDK process whenever it calls the local capability. - Credentials. Model-provider credentials and credentials for hosted MCP connections are managed by the platform. Credentials used by custom tools and local MCP clients remain in your process.
- Storage. Input files and output artifacts are stored and served for you. Storage locations and runtime filesystem roots are not part of the public API.
- Streaming. Durable runs expose live events and retained event history. One-shot responses return synchronously and do not expose a run stream.
Your process supplies one thing the platform cannot: the handlers for your own tools. When you pass a function as a tool, the model's call is routed back to your machine, your code runs there, and the result returns to the run. That is what makes it possible to give an agent access to your database, your internal API, or your browser automation without handing over any credentials.
