MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / system

Method system

core/src/llm/mod.rs:185–192  ·  view source on GitHub ↗

Create a system message

(content: impl Into<String>)

Source from the content-addressed store, hash-verified

183
184 /// Create a system message
185 pub fn system(content: impl Into<String>) -> Self {
186 Self {
187 role: LlmRole::System,
188 content: content.into(),
189 tool_calls: Vec::new(),
190 tool_call_id: None,
191 }
192 }
193
194 /// Create a tool message (for tool call results)
195 pub fn tool(tool_call_id: impl Into<String>, result: impl Into<String>) -> Self {

Calls

no outgoing calls