Skip to content

Commit

Permalink
fix(ts): add missing tool_calls in NativeCompletionResult
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Feb 14, 2025
1 parent dbca475 commit 6572fc7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/NativeRNLlama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ export type NativeCompletionResultTimings = {

export type NativeCompletionResult = {
text: string
tool_calls: Array<{
type: 'function'
function: {
name: string
arguments: string
}
id?: string
}>

tokens_predicted: number
tokens_evaluated: number
Expand Down

0 comments on commit 6572fc7

Please sign in to comment.