(content: impl Into<String>)
| 177 | |
| 178 | impl Message { |
| 179 | pub fn user(content: impl Into<String>) -> Self { |
| 180 | Self { |
| 181 | role: Role::User, |
| 182 | content: Content::Text(content.into()), |
| 183 | cache_control: None, |
| 184 | provider_options: None, |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | pub fn assistant(content: impl Into<String>) -> Self { |
| 189 | Self { |
nothing calls this directly
no outgoing calls
no test coverage detected