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

Method with_prompt_slots

core/src/agent_api/session_options.rs:553–556  ·  view source on GitHub ↗

Set slot-based system prompt customization for this session. Allows customizing role, guidelines, response style, and extra instructions without overriding the core agentic capabilities.

(mut self, slots: SystemPromptSlots)

Source from the content-addressed store, hash-verified

551 /// Allows customizing role, guidelines, response style, and extra instructions
552 /// without overriding the core agentic capabilities.
553 pub fn with_prompt_slots(mut self, slots: SystemPromptSlots) -> Self {
554 self.prompt_slots = Some(slots);
555 self
556 }
557
558 /// Replace the built-in hook engine with an external hook executor.
559 ///

Calls

no outgoing calls