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

Method with_role

core/src/prompts.rs:560–563  ·  view source on GitHub ↗

Set the role/identity.

(mut self, role: impl Into<String>)

Source from the content-addressed store, hash-verified

558
559 /// Set the role/identity.
560 pub fn with_role(mut self, role: impl Into<String>) -> Self {
561 self.role = Some(role.into());
562 self
563 }
564
565 /// Set custom guidelines.
566 pub fn with_guidelines(mut self, guidelines: impl Into<String>) -> Self {

Callers 1

test_builder_methodsFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_builder_methodsFunction · 0.64