MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / freeze

Method freeze

crates/chat-cli/src/cli/agent/mod.rs:216–222  ·  view source on GitHub ↗

This function mutates the agent to a state that is writable. Practically this means reverting some fields back to their original values as they were written in the config.

(&mut self)

Source from the content-addressed store, hash-verified

214 /// Practically this means reverting some fields back to their original values as they were
215 /// written in the config.
216 fn freeze(&mut self) {
217 let Self { mcp_servers, .. } = self;
218
219 mcp_servers
220 .mcp_servers
221 .retain(|_name, config| !config.is_from_legacy_mcp_json);
222 }
223
224 /// This function mutates the agent to a state that is usable for runtime.
225 /// Practically this means to convert some of the fields value to their usable counterpart.

Callers 15

buildMethod · 0.80
newMethod · 0.80
configMethod · 0.80
configMethod · 0.80
configMethod · 0.80
configMethod · 0.80
to_str_prettyMethod · 0.80
buildMethod · 0.80
newMethod · 0.80
configMethod · 0.80
configMethod · 0.80
configMethod · 0.80

Calls

no outgoing calls

Tested by 2

configMethod · 0.64
configMethod · 0.64