(&self, f: &mut std::fmt::Formatter<'_>)
| 14 | |
| 15 | impl std::fmt::Display for MessageRole { |
| 16 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 17 | write!( |
| 18 | f, |
| 19 | "{}", |
| 20 | match self { |
| 21 | MessageRole::System => "system", |
| 22 | MessageRole::User => "user", |
| 23 | MessageRole::Assistant => "assistant", |
| 24 | } |
| 25 | ) |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | /// A chat message. |
nothing calls this directly
no outgoing calls
no test coverage detected