We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b02fee8 commit 0a70e31Copy full SHA for 0a70e31
1 file changed
typescript/acp.ts
@@ -582,6 +582,24 @@ export class ClientSideConnection implements Agent {
582
);
583
}
584
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
+
603
/**
604
* Authenticates the client using the specified authentication method.
605
*
0 commit comments