Skip to content

Commit 0a70e31

Browse files
committed
Add missing method on client connection
1 parent b02fee8 commit 0a70e31

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

typescript/acp.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,24 @@ export class ClientSideConnection implements Agent {
582582
);
583583
}
584584

585+
/**
586+
* **UNSTABLE**
587+
*
588+
* This capability is not part of the spec yet, and may be removed or changed at any point.
589+
*
590+
* Select a model for a given session.
591+
*/
592+
async setSessionModel(
593+
params: schema.SetSessionModelRequest,
594+
): Promise<schema.SetSessionModelResponse> {
595+
return (
596+
(await this.#connection.sendRequest(
597+
schema.AGENT_METHODS.session_set_mode,
598+
params,
599+
)) ?? {}
600+
);
601+
}
602+
585603
/**
586604
* Authenticates the client using the specified authentication method.
587605
*

0 commit comments

Comments
 (0)