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