llama_cpp_bindings/error/
paired_quote_failure.rs1#[derive(Debug, thiserror::Error)]
2pub enum PairedQuoteFailure {
3 #[error("empty key in tool call '{tool_name}' arguments")]
4 EmptyKey { tool_name: String },
5 #[error("tool call '{tool_name}' translated arguments are not valid JSON: {message}")]
6 InvalidJsonArguments { tool_name: String, message: String },
7 #[error("tool call '{tool_name}' has unclosed quoted value for key '{key}'")]
8 UnclosedQuotedValue { tool_name: String, key: String },
9 #[error("tool call '{tool_name}' arguments ended without close marker (state: {state})")]
10 UnclosedArgumentBlock {
11 tool_name: String,
12 state: &'static str,
13 },
14 #[error(
15 "tool call '{tool_name}' has unexpected character '{character}' after value for key '{key}'"
16 )]
17 UnexpectedCharAfterValue {
18 tool_name: String,
19 key: String,
20 character: char,
21 },
22}