Skip to main content

llama_cpp_bindings/
error.rs

1pub mod apply_chat_template_error;
2pub mod bracketed_args_failure;
3pub mod chat_template_error;
4pub mod decode_error;
5pub mod embeddings_error;
6pub mod encode_error;
7pub mod eval_multimodal_chunks_error;
8pub mod fit_error;
9pub mod grammar_error;
10pub mod json_object_failure;
11pub mod json_schema_to_grammar_error;
12pub mod key_value_xml_tags_failure;
13pub mod kv_cache_seq_add_error;
14pub mod kv_cache_seq_div_error;
15pub mod llama_context_load_error;
16pub mod llama_cpp_error;
17pub mod llama_lora_adapter_init_error;
18pub mod llama_lora_adapter_remove_error;
19pub mod llama_lora_adapter_set_error;
20pub mod llama_model_load_error;
21pub mod logits_error;
22pub mod marker_detection_error;
23pub mod meta_val_error;
24pub mod model_params_error;
25pub mod new_llama_chat_message_error;
26pub mod paired_quote_failure;
27pub mod parse_chat_message_error;
28pub mod sample_error;
29pub mod sampler_accept_error;
30pub mod sampling_error;
31pub mod string_to_token_error;
32pub mod token_sampling_error;
33pub mod token_to_string_error;
34pub mod tool_call_format_failure;
35pub mod xml_function_tags_failure;
36
37pub use apply_chat_template_error::ApplyChatTemplateError;
38pub use bracketed_args_failure::BracketedArgsFailure;
39pub use chat_template_error::ChatTemplateError;
40pub use decode_error::DecodeError;
41pub use embeddings_error::EmbeddingsError;
42pub use encode_error::EncodeError;
43pub use eval_multimodal_chunks_error::EvalMultimodalChunksError;
44pub use fit_error::FitError;
45pub use grammar_error::GrammarError;
46pub use json_object_failure::JsonObjectFailure;
47pub use json_schema_to_grammar_error::JsonSchemaToGrammarError;
48pub use key_value_xml_tags_failure::KeyValueXmlTagsFailure;
49pub use kv_cache_seq_add_error::KvCacheSeqAddError;
50pub use kv_cache_seq_div_error::KvCacheSeqDivError;
51pub use llama_context_load_error::LlamaContextLoadError;
52pub use llama_cpp_error::LlamaCppError;
53pub use llama_lora_adapter_init_error::LlamaLoraAdapterInitError;
54pub use llama_lora_adapter_remove_error::LlamaLoraAdapterRemoveError;
55pub use llama_lora_adapter_set_error::LlamaLoraAdapterSetError;
56pub use llama_model_load_error::LlamaModelLoadError;
57pub use logits_error::LogitsError;
58pub use marker_detection_error::MarkerDetectionError;
59pub use meta_val_error::MetaValError;
60pub use model_params_error::ModelParamsError;
61pub use new_llama_chat_message_error::NewLlamaChatMessageError;
62pub use paired_quote_failure::PairedQuoteFailure;
63pub use parse_chat_message_error::ParseChatMessageError;
64pub use sample_error::SampleError;
65pub use sampler_accept_error::SamplerAcceptError;
66pub use sampling_error::SamplingError;
67pub use string_to_token_error::StringToTokenError;
68pub use token_sampling_error::TokenSamplingError;
69pub use token_to_string_error::TokenToStringError;
70pub use tool_call_format_failure::ToolCallFormatFailure;
71pub use xml_function_tags_failure::XmlFunctionTagsFailure;
72
73pub type Result<TValue> = std::result::Result<TValue, LlamaCppError>;