Skip to content

Eng 1320 build deploy agents#3

Merged
MaiaJP-AIXplain merged 7 commits intoAgentsfrom
ENG-1320-Build-Deploy-Agents
Jan 16, 2025
Merged

Eng 1320 build deploy agents#3
MaiaJP-AIXplain merged 7 commits intoAgentsfrom
ENG-1320-Build-Deploy-Agents

Conversation

@MaiaJP-AIXplain
Copy link
Copy Markdown
Collaborator

No description provided.

- Introduced new `UtilityModel` and `UtilityModelInput` classes to represent utility models and their inputs.
- Added new error cases in `ModelError` for better error handling: `noResponse`, `missingModelUtilityID`, and `modelUtilityCreationError`.
- Updated `Networking` to include a new endpoint for utilities.
- Implemented `createUtilityModel` method in `ModelProvider` for creating utility models with proper error handling.
- Enhanced localized error descriptions for improved debugging and user feedback.
…error handling

- Added `ModelParameter` struct to represent model parameters with properties and constraints.
- Updated `Model` class to include mutable properties for `name`, `supplier`, and `version`.
- Introduced `UtilityModelInputInformation` class to replace `UtilityModelInput`, enhancing input representation.
- Enhanced `UtilityModel` to initialize from `Model`, mapping parameters to inputs.
- Added new error case `failToCallModelExecuteFromUtility` in `ModelError` for improved error handling during model execution.
- Updated `ModelOutput` to include `stdout` and `stderr` for capturing execution output and errors.
- Adjusted `createUtilityModel` method in `ModelProvider` to accommodate new input structure.
- Introduced `UtilityModelInput` enum to represent different input types (text, number, boolean) with an encoding method.
- Updated `UtilityModel` initializer to accept `UtilityModelInput` instead of `UtilityModelInputInformation`, enhancing input flexibility.
- Adjusted `createUtilityModel` method in `ModelProvider` to accommodate the new input structure, ensuring better integration with the updated model design.
- Introduced `unableToUpdateModelUtility` error case in `ModelError` for improved error reporting during model updates.
- Updated `Agent` class to include a mutable `status` property and added `assets` array to manage associated tools.
- Implemented CRUD operations for `Agent` in a new `Agents+CRUD` extension, allowing for deployment, addition of tools, and updates.
- Created `CreateAgentTool` enum to facilitate the conversion of various tool types into a standardized `Tool` format.
- Added `convertToTool` methods in `Model`, `Pipeline`, and `UtilityModel` to support tool conversion.
- Enhanced `UtilityModel` with an `update` method for better management of utility model updates.
- Introduced `AgentProvider` and `ModelProvider` classes for backend interaction, including fetching and creating agents and models.
- Added comprehensive error handling and logging throughout the new functionalities for better debugging and user feedback.
- Added new error cases `errorOnDelete` and `errorOnUpdate` to `AgentsError` for improved error reporting during agent deletion and update operations.
- Updated `Agents+CRUD` extension with detailed documentation for `deploy`, `appendTools`, `update`, and `delete` methods, enhancing clarity on their functionality and usage.
- Improved `Tool` struct with additional properties and documentation for better representation of tools used by agents.
- Refactored `UtilityModelInput` and `UtilityModelInputInformation` to include comprehensive documentation, clarifying their roles in input handling for utility models.
- Enhanced error handling in `UtilityModel` and `UtilityModelInput` to ensure robust interaction with the server and improved user feedback.
…nd documentation

- Updated `APIKeyManager` to load backend and models run URLs from environment variables, with fallbacks to default values.
- Made `id` property in `Tool` struct public for better accessibility.
- Enhanced documentation for methods and properties across the affected files to clarify functionality and usage.
- Added new functional tests for agent creation and model interactions to ensure robust functionality and error handling.
- Changed asset IDs in `AgentBuildingTests` to reflect updated resources.
- Enhanced input descriptions in `createUtilityModel` method for clarity.
- Updated agent retrieval in `AgentsFunctionTests` with a new identifier.
- Improved input descriptions in `ModelUtilityFunctionTests` for better understanding of test parameters.
@MaiaJP-AIXplain MaiaJP-AIXplain merged commit 9f11f08 into Agents Jan 16, 2025
@MaiaJP-AIXplain MaiaJP-AIXplain deleted the ENG-1320-Build-Deploy-Agents branch January 16, 2025 11:00
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