MCPcopy Create free account
hub / github.com/cursor/cookbook / setModel

Method setModel

sdk/coding-agent-cli/src/agent.ts:104–106  ·  view source on GitHub ↗
(model: ModelSelection)

Source from the content-addressed store, hash-verified

102 }
103
104 setModel(model: ModelSelection) {
105 this.modelSelection = model
106 }
107
108 async listModels(): Promise<ModelChoice[]> {
109 const models = await Cursor.models.list({ apiKey: this.apiKey })

Callers 2

selectModelFunction · 0.80
toggleModelPreferenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected