MCPcopy Create free account
hub / github.com/AI45Lab/Code / get_session_id_header

Method get_session_id_header

core/src/config/provider.rs:181–186  ·  view source on GitHub ↗

Get the header name that should carry the runtime session ID.

(&'a self, model: &'a ModelConfig)

Source from the content-addressed store, hash-verified

179
180 /// Get the header name that should carry the runtime session ID.
181 pub fn get_session_id_header<'a>(&'a self, model: &'a ModelConfig) -> Option<&'a str> {
182 model
183 .session_id_header
184 .as_deref()
185 .or(self.session_id_header.as_deref())
186 }
187}

Callers 2

default_llm_configMethod · 0.80
llm_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected