-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance token handling and refactor tool execution (#754)
* Add token handling improvements and error serialization to tool execution * Refactor function to tool nomenclature, add token handling, and implement tool options. * Add logWarn for error handling and adjust tracing in tool calls * Refactor: Rename "functions" to "tools" in promptdom.ts for clarity * Replace `writeText` with `assistant` function and update schema formatting across files. * Add pricing data and cost calculation to GenerationStats with API integration * Refactor cost calculation into `estimateCost` function for reuse. * Add count parameter, increase token limits, and update cost rendering logic
- Loading branch information
Showing
36 changed files
with
876 additions
and
163 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.