Create a system message
(content: impl Into<String>)
| 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 { |
no outgoing calls