-
Notifications
You must be signed in to change notification settings - Fork 26
feat: Tokenizer and tool tracking [WIP] #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or 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
… CDATA before parsing and during xml serialization.
…parts into more generic slices. Cleaned tokenizing code in prep for integrating specific model configurations. Lots of small interface cleanup and adjustments.
Contributor
|
Some left over typing stuff from Transformers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/docs
Changes to documentation and guides
area/examples
Changes to example code and demonstrations
area/tests
Changes to test files and testing infrastructure
type/docs
Documentation updates and improvements
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Notes
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
This summary was generated with ❤️ by rigging
Generated Summary
rigging.toolsmodule.Tool,ToolCall, andToolDefinitionclasses for better organization and management of tool interactions.ChatandChatPipelineclasses to support the new tool structure, including integration with new transform methods.Messageclass to replace the previouspartsimplementation.transformfunction in theChatPipelineclass, allowing the application of transformations to messages and parameters as part of the pipeline processing.This summary was generated with ❤️ by rigging
Generated Summary
Summary of changes:
MessageSliceandTokenSliceto represent portions of messages and tokens.ApiToolCall,ApiToolDefinition, and related classes with a more modular structure usingTool,ToolCall, andToolDefinition.Chat,ChatPipeline, and related classes to utilize the new slice logic for better content tracking.PipelineWarning,MessageWarning, andTokenizeWarning.transformcallbacks to be registered in theChatPipeline.Key changes include:
This refactor aims to make the codebase more modular, maintainable, and easier to enhance in the future while also improving the developer experience when using the framework for chat and tool interactions.
This summary was generated with ❤️ by rigging
Generated Summary
PipelineWarningclass to handle non-critical warnings during pipeline execution.ApiToolCall,ApiToolChoice, andApiToolDefinitionwith genericToolCall,ToolChoice, andToolDefinition, facilitating a more unified tool interface.inject_system_contentlogic into a new function to streamline injection of system messages in the chat.to_openai_spec()in favor ofto_openai(), providing a more intuitive method for converting messages to OpenAI-compatible format.ChatPipelinefunctionality with new transform methods and improved handling of tool calls and responses.riggingpackage for better clarity and performance.api.pymodule, consolidating functionality into the base tool definitions.This summary was generated with ❤️ by rigging