Enhance UtilityModel with model instance management and code update f…#6
Merged
MaiaJP-AIXplain merged 6 commits intomainfrom Jan 24, 2025
Conversation
…unctionality - Added `modelInstance` property to `UtilityModel` for better state management. - Updated `updateCode` method to return the fetched code as a string, improving usability. - Introduced `updateModelInstance` method to asynchronously fetch and update the model instance, enhancing the model's dynamic capabilities.
- Changed properties `function`, `supplier`, `description`, and `version` in the `Tool` struct from internal to public access level, enhancing usability and allowing external access to these attributes.
…oving unused parameters. Updated case handling for model, pipeline, asset, utility, and tool to enhance code clarity and maintainability.
…Tool conversion method - Changed the version property in the Model class from String to Version struct for better type safety and clarity. - Updated the convertToTool method in Model+AgentUsable.swift to return the version's id instead of the version string. - Introduced a new Version struct to encapsulate version details, enhancing code organization and maintainability.
- Modified the initializer of UtilityModel to accept a version parameter, utilizing the model's version id for improved version management. - This change enhances the model's capability to handle versioning more effectively, aligning with recent refactoring efforts in the Model class.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
modelInstanceproperty toUtilityModelfor better state management.updateCodemethod to return the fetched code as a string, improving usability.updateModelInstancemethod to asynchronously fetch and update the model instance, enhancing the model's dynamic capabilities.