llama_cpp_bindings/error/
tool_call_format_failure.rs1use crate::error::bracketed_args_failure::BracketedArgsFailure;
2use crate::error::json_object_failure::JsonObjectFailure;
3use crate::error::key_value_xml_tags_failure::KeyValueXmlTagsFailure;
4use crate::error::paired_quote_failure::PairedQuoteFailure;
5use crate::error::xml_function_tags_failure::XmlFunctionTagsFailure;
6
7#[derive(Debug, thiserror::Error)]
8pub enum ToolCallFormatFailure {
9 #[error("bracketed-args fallback parser: {0}")]
10 BracketedArgs(#[from] BracketedArgsFailure),
11 #[error("json-object fallback parser: {0}")]
12 JsonObject(#[from] JsonObjectFailure),
13 #[error("key-value-xml-tags fallback parser: {0}")]
14 KeyValueXmlTags(#[from] KeyValueXmlTagsFailure),
15 #[error("paired-quote fallback parser: {0}")]
16 PairedQuote(#[from] PairedQuoteFailure),
17 #[error("xml-function-tags fallback parser: {0}")]
18 XmlFunctionTags(#[from] XmlFunctionTagsFailure),
19}