MCPcopy Index your code
hub / github.com/cursor/cookbook / constructor

Method constructor

sdk/coding-agent-cli/src/agent.ts:80–88  ·  view source on GitHub ↗
(options: CodingAgentSessionOptions)

Source from the content-addressed store, hash-verified

78 private modelSelection: ModelSelection
79
80 constructor(options: CodingAgentSessionOptions) {
81 this.apiKey = options.apiKey
82 this.cwd = options.cwd
83 this.force = options.force
84 this.mode = options.executionMode ?? "local"
85 this.modelSelection = options.model
86 this.agent = this.createAgent()
87 this.agentKey = this.currentAgentKey()
88 }
89
90 get model() {
91 return this.modelSelection

Callers

nothing calls this directly

Calls 2

createAgentMethod · 0.95
currentAgentKeyMethod · 0.95

Tested by

no test coverage detected