adding test, small improvements in code #106
Merged
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.
This pull request includes significant changes to the configuration, dependencies, and structure of the AgenticFleet project. The most important changes include the addition of a new client configuration, updates to the dependencies and project setup, and the introduction of new modules and classes for agent and client management.
Configuration and Dependencies:
model_config.yaml
: Added configuration forAzureOpenAIChatCompletionClient
to use environment variables for model, endpoint, deployment, API version, and API key.pyproject.toml
: Updated dependencies to include optional dependencies for testing, development, documentation, and models. Removed old project URLs and scripts, and added new tool configurations forpytest
,coverage
,ruff
,black
, andisort
. [1] [2]New Modules and Classes:
src/agentic_fleet/agents/__init__.py
: Introduced the Agents module, including theMagenticOneAgent
andcreate_magentic_one_agent
functions.src/agentic_fleet/agents/magentic_one.py
: Added the implementation of theMagenticOneAgent
class, providing a wrapper for the MagenticOne agent from autogen.src/agentic_fleet/main.py.new
: Created the main entry point for the AgenticFleet application, consolidating functionality from previous main files and integrating the new agent and client configurations.Code Refactoring:
src/agentic_fleet/app.py
: Removed unused imports and updated the model name in thestart_chat
function. [1] [2] [3]src/agentic_fleet/models/client_factory.py
: Improved thecreate_client
function with additional validation and logging. [1] [2] [3]Documentation:
src/agentic_fleet/services/__init__.py
: Added module-level documentation for the Services module.src/agentic_fleet/services/client_factory.py
: Added documentation for client creation and management services.