llama_cpp_bindings/error/bracketed_args_failure.rs
1/// Failures specific to the bracketed-JSON args parser (Mistral 3 `[TOOL_CALLS]name[ARGS]{...}`).
2#[derive(Debug, thiserror::Error)]
3pub enum BracketedArgsFailure {
4 #[error("tool call '{tool_name}' arguments are not valid JSON: {message}")]
5 InvalidJsonArguments { tool_name: String, message: String },
6 #[error("tool call '{tool_name}' arguments truncated before JSON value completed")]
7 UnterminatedArguments { tool_name: String },
8}