Skip to content

Commit

Permalink
Comments re interface (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeffrey Kegler <[email protected]>
  • Loading branch information
v-jkegler and Jeffrey Kegler authored Oct 30, 2024
1 parent e9cfc18 commit 8de47b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parser/src/earley/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,9 @@ impl ParserState {
}
}

// apply_tokens() "pushes" the bytes in 'tokens' into the lexer and parser. It is a top-level
// method in this file. It is well below llguidance's top-level methods, but in the llguidance
// LLinterpreter interface, it is called indirectly via the advance_parser() method.
pub fn apply_tokens(
&mut self,
shared: &mut SharedState,
Expand Down
1 change: 1 addition & 0 deletions rust/src/py.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ struct LLTokenizer {
tok_bos: Option<u32>,
}

// This is the interface from llguidance to the LLM's.
#[pymethods]
impl LLInterpreter {
#[new]
Expand Down

0 comments on commit 8de47b9

Please sign in to comment.