Skip to content

Enhance UtilityModel with model instance management and code update f…#6

Merged
MaiaJP-AIXplain merged 6 commits intomainfrom
ENG-1467-ai-xplain-kit-fix-model-instance-init-for-utility-tools
Jan 24, 2025
Merged

Enhance UtilityModel with model instance management and code update f…#6
MaiaJP-AIXplain merged 6 commits intomainfrom
ENG-1467-ai-xplain-kit-fix-model-instance-init-for-utility-tools

Conversation

@MaiaJP-AIXplain
Copy link
Copy Markdown
Collaborator

  • 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.

…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.
@MaiaJP-AIXplain MaiaJP-AIXplain merged commit a59e0df into main Jan 24, 2025
@MaiaJP-AIXplain MaiaJP-AIXplain deleted the ENG-1467-ai-xplain-kit-fix-model-instance-init-for-utility-tools branch May 12, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant