(&self)
| 19 | |
| 20 | impl FinishReason { |
| 21 | pub const fn as_str(&self) -> &'static str { |
| 22 | match self { |
| 23 | FinishReason::Complete => "complete", |
| 24 | FinishReason::ToolCalls => "tool_calls", |
| 25 | FinishReason::Cancelled => "cancelled", |
| 26 | FinishReason::Error => "error", |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | impl fmt::Display for FinishReason { |
no outgoing calls