Start here
Call models with Core
Section titled “Call models with Core”Use Core when you need streaming answers, tool calls or the same error handling across providers. You can keep your existing agent loop.
isTransient("overload"); // trueImport this function, then follow the Core quickstart to call a model.
Run tasks with Agents
Section titled “Run tasks with Agents”Use Agents when you want a loop that calls a model, runs its tools and returns a checked result. Core handles the provider underneath it.
await assistant.run("List the tasks.");The offline quickstart supplies assistant and returns two example
tasks without an API key. Agents 0.4.3 is experimental; check the result status before using its output.
For steps your code chooses, use a workflow.
Build a chat screen with React
Section titled “Build a chat screen with React”Send through your app’s transport:
await chat.send("Summarize this page.");React 0.2.1 supplies chat state and optional components. Set up the hook or try the component demo. Keep your existing server and styles. Building for React Native? Pair it with Native 0.1.0.
Choose only what you need
Section titled “Choose only what you need”- Already have an agent loop? Use Core.
- Need a shared model/tool loop? Use Agents.
- Diagnosing a provider failure? Try the error classifier.
- Connecting a browser to a server? Read the package boundaries.