(content: impl Into<String>)
| 32 | |
| 33 | impl AgentMessage { |
| 34 | pub fn system(content: impl Into<String>) -> Self { |
| 35 | Self { |
| 36 | role: MessageRole::System, |
| 37 | content: content.into(), |
| 38 | tool_calls: Vec::new(), |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | pub fn user(content: impl Into<String>) -> Self { |
| 43 | Self { |