MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / NewSessionController

Function NewSessionController

backend/session.go:157–171  ·  view source on GitHub ↗
(sessionID string, cfg config.Config, engine *agent.QueryEngine, state *agent.AgentState, store *session.Store, emit func(PushEvent))

Source from the content-addressed store, hash-verified

155 }
156 target.PinnedFields = map[string]bool{}
157 for field, pinned := range source.PinnedFields {
158 if !pinned {
159 continue
160 }
161 target.PinnedFields[field] = true
162 switch field {
163 case "api_key":
164 target.APIKey = source.APIKey
165 case "api_base_url":
166 target.APIBaseURL = source.APIBaseURL
167 case "api_model":
168 target.APIModel = source.APIModel
169 case "api_type":
170 target.APIType = source.APIType
171 case "api_max_tokens":
172 target.APIMaxTokens = source.APIMaxTokens
173 case "harness_mode":
174 target.HarnessMode = source.HarnessMode

Callers 1

createWithStateMethod · 0.85

Calls 1

NewWSRendererBridgeFunction · 0.85

Tested by

no test coverage detected