MCPcopy Create free account

hub / github.com/Dan-wanna-M/kbnf / functions

Functions238 in github.com/Dan-wanna-M/kbnf

Methodtoken_id_py
(&self, token: &Token)
src/ffi_bindings.rs:227
Methodtoken_js
(&self, token_id: u32)
src/ffi_bindings.rs:204
Methodtoken_py
(&self, token_id: u32)
src/ffi_bindings.rs:274
Methodtoken_string
Retrieves the token string associated with the given token ID. # Arguments `token_id` - The ID of the token to retrieve the string for. # Returns
src/vocabulary.rs:208
Methodtoken_string_js
(&self, token_id: u32)
src/ffi_bindings.rs:189
Methodtoken_string_py
(&self, token_id: u32)
src/ffi_bindings.rs:255
Methodtry_accept_new_bytes
( &mut self, bytes: &[u8], )
src/engine.rs:218
Methodtry_accept_new_bytes
( &mut self, bytes: &[u8], )
src/engine_base.rs:1652
Methodtry_accept_new_bytes_py
( &mut self, bytes: &[u8], )
src/ffi_bindings.rs:501
Methodtry_accept_new_token
( &mut self, token_id: u32, )
src/engine.rs:211
Methodtry_accept_new_token_js
( &mut self, token_id: u32, )
src/ffi_bindings.rs:341
Methodtry_accept_new_token_py
( &mut self, token_id: u32, )
src/ffi_bindings.rs:477
Methodtry_from
(value: usize)
src/zero.rs:23
Methodtry_leo_complete_item
( leo_items_buffer: &mut Vec<ToBeCompletedItem<TI, TSP>>, leo_items: &mut AHashMap<Dotted<TI,
src/engine_base.rs:1125
Methodupdate_logits
Try to accept the token ID and if succeeds, update the given logits array. # Arguments * `token_id`: The token ID to be accepted. * `logits`: The l
python/kbnf/engine.py:199
Methodupdate_logits
( &mut self, token_id: u32, logits: &mut [f32], )
src/engine.rs:233
Methodupdate_logits
( &mut self, token_id: u32, logits: &mut [f32], )
src/engine_base.rs:1832
Methodupdate_logits_js
( &mut self, token_id: u32, logits: &mut [f32], )
src/ffi_bindings.rs:415
Methodupdate_logits_py
( &mut self, token_id: u32, logits_ptr: usize, length: usize, )
src/ffi_bindings.rs:779
Methodupdate_postdot_item
( grammar: &Grammar<TI>, node: HIRNode<TI>, item: EarleyItem<TI, TD, TP, TSP, TS>,
src/engine_base.rs:1079
Methodvalidate_ts_size_for_regexes
(grammar: &Grammar<TI>)
src/engine_base.rs:595
Methodvalidate_ts_size_for_suffix_automata
( grammar: &Grammar<TI>, )
src/engine_base.rs:610
Methodvalidate_ts_size_for_terminals
(grammar: &Grammar<TI>)
src/engine_base.rs:583
Methodvocab
(&self)
src/engine.rs:270
Methodvocab
(&self)
src/engine_base.rs:1927
Methodvocab_js
(&self)
src/ffi_bindings.rs:376
Methodvocab_py
(&self)
src/ffi_bindings.rs:717
Methodvocab_size_js
(&self)
src/ffi_bindings.rs:170
Methodvocab_size_py
(&self)
src/ffi_bindings.rs:232
Methodwith_config
Create a new [`Engine`] from an KBNF grammar string, a [`Vocabulary`], and a [`Config`]. # Arguments `kbnf_syntax_grammar_str` - The KBNF grammar st
src/engine.rs:117
Methodwith_config_js
( kbnf_syntax_grammar_str: &str, vocabulary: Vocabulary, config: Config, )
src/ffi_bindings.rs:319
Methodwrite_allowed_token_ids_to_buffer
( &self, buffer: &mut [usize], )
src/engine.rs:252
Methodwrite_allowed_token_ids_to_buffer
( &self, buffer: &mut [usize], )
src/engine_base.rs:1877
Methodwrite_allowed_token_ids_to_buffer_py
( &self, ptr: usize, length: usize, )
src/ffi_bindings.rs:685
Methodwrite_disallowed_token_ids_to_buffer
( &self, buffer: &mut [usize], )
src/engine.rs:245
Methodwrite_disallowed_token_ids_to_buffer
( &self, buffer: &mut [usize], )
src/engine_base.rs:1864
Methodwrite_disallowed_token_ids_to_buffer_py
( &self, ptr: usize, length: usize, )
src/ffi_bindings.rs:635
Methodzero
()
src/zero.rs:129
← previous201–238 of 238, ranked by callers