Skip to main content

Properties

The agent’s initialize response (capabilities, auth methods).
(input: PromptInput, options: LaunchSessionOptions<O, T> & { turn: RunOptions<T…
required
Type: PromptInputLaunchSessionOptionsRunOptionsStandardSchemaLaunchedSessionCreate a session and submit its first turn, without waiting for its outcome.

Methods

[asyncDispose]()

await using devin = … closes the client at scope exit, once the connection has shut down.

Returns

Promise<void>

attach()

Resume an existing session by id, without the replayed transcript.

Parameters

string
required
L

Returns

Promise<S>

close()

Shut down the connection. In-flight prompts reject.

createSession()

Create a new session; the returned session streams turns over ACP.

Parameters

O

Returns

Promise<S>

loadSession()

Resume an existing session by id, returning it with the replayed transcript.

Parameters

string
required
L

Returns

LoadedSession

releaseSession()

Detach a session: active turns reject, observers end, and the handle cannot send requests.

Parameters

string
required