> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Devin SDK reference

> Every class, function, and type that @cognition-ai/sdk exports for driving Devin sessions, generated from the package source with TypeDoc.

This section is generated from the TypeScript source of `@cognition-ai/sdk` and covers the
hand-written SDK: the layer you use to run sessions.

| Start from | For |
| - | - |
| `createDevin` | Getting a `CloudDevin` or `LocalDevin` |
| `CloudDevin`, `LocalDevin` | Creating, resuming, listing and attaching to sessions |
| `CloudSession`, `LocalSession`, `AcpSession` | `run()`, `send()`, `stream()`, `cancel()`, `events()` on a session |
| `SessionEvent`, `ToolCall`, `ToolCallDetail` | The typed events a turn yields and the normalized tool-call payload |
| `Turn`, `RunOptions`, `SessionOutcome` | What `run()` returns, including typed structured output |
| `prompt` | Building prompts with files, images and resources |
| `CognitionAcp` | Cognition's ACP extension methods and types, for `extRequest()` |
| `Fusion`, `FusionModel` | Pairing a lead and sidekick model for a local session |
| `traceSessions`, `traceSession` | Tracing sessions with OpenTelemetry, from `@cognition-ai/sdk/tracing` |

The API client that `CloudDevin` exposes as `devin.api` is documented separately under
[API client](https://docs.devin.ai/sdk/api/overview.md); its types show up here by name where an SDK signature uses them.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.