Skip to content

Feature/116 modularization - #152

Merged
Eigenwise merged 40 commits into
Eigenwise:v2.0from
jon-fox:feature/116-modularization
Jul 21, 2025
Merged

Eigenwise merged 40 commits into
Eigenwise:v2.0from
jon-fox:feature/116-modularization

Conversation

@jon-fox

@jon-fox jon-fox commented Jul 19, 2025

Copy link
Copy Markdown
Contributor

My Summary

addresses #116 Improve modularization

Summary and import upgrades included in UPGRADE_DOC.md

  • Core abstractions are re exported at the package root

    from atomic_agents import BaseAgent, BaseTool, BaseIOSchema, …
    (instead of atomic_agents.lib.*)

  • Directory cleanup

    • components/ → context/
    • factories/ → connectors/ with connectors.mcp for MCP tools
    • Allows for future enhancements to support connectors.a2a (agent to agent connector) for example
  • Class rename: SystemPromptContextProviderBase → BaseDynamicContextProvider

  • Old paths removed → breaking change; version set to v2.0.0

Updated youtube api scraper to 1.1.1 to address errors
jdepoix/youtube-transcript-api#429

Updated atomic-examples and atomic-forge poetry dependences using poetry update atomic-agents while testing to ensure all examples and forges work as expected.

Updated the doc md files to reflect the new import structure


GITHUB COPILOT SUMMARY

This pull request introduces a major refactor to the Atomic Agents library, focusing on simplifying import paths, reorganizing the package structure, and improving code clarity. The changes include breaking changes to import paths, renaming classes for better readability, and reorganizing modules into more intuitive packages. Additionally, version 2.0.0 introduces updates to dependencies and documentation to guide users through the migration process.

Simplified Import Paths and Package Reorganization:

  • The .lib directory has been eliminated, and imports are now shorter and cleaner. Core classes are re-exported from atomic_agents, while components have been moved to context, and factories to connectors with MCP-specific functionality under connectors.mcp.

  • New __init__.py files were added to re-export relevant classes and functions for better package organization. Examples include atomic_agents/__init__.py, atomic_agents/agents/__init__.py, and atomic_agents/context/__init__.py.

Class Renaming and API Consistency:

  • SystemPromptContextProviderBase has been renamed to BaseDynamicContextProvider for improved clarity. All references to the old class name have been updated.

  • Context providers in SystemPromptGenerator now use the updated BaseDynamicContextProvider type.

Documentation Updates:

  • An upgrade guide (UPGRADE_DOC.md) has been added to help users migrate to the new import paths and understand the breaking changes. This includes examples of before-and-after import patterns and the benefits of the new structure.

Dependency and Version Updates:

  • The package version has been updated to 2.0.0. Additionally, the YouTube API dependency has been updated to version 1.1.1, and Poetry dependencies have been refreshed for compatibility.

jon-fox added 30 commits July 5, 2025 22:37
…multimodal instructor version, updating upgrade doc
…ding transcription lib dependency to 1.1.1, fix was necessary
…ectors will include subdirs for mcp and future use cases like agent to agent. updating mcp-agent examples with new imports, new inits, updating SystemPromptContextProviderBase -> BaseDynamicContextProvider. Updating readme examples and example_clients to launch with universal launcher
…ntextproviderbase to basedynamiccontextprovider
…youtube-transcript-api to version 1.1.1 to handle errors
@Eigenwise
Eigenwise merged commit 5ad4e03 into Eigenwise:v2.0 Jul 21, 2025
@Eigenwise

Copy link
Copy Markdown
Owner

Woohooo!!

@jon-fox Thanks a ton, I'll try to find some time ASAP to play around with it a bit & make sure there's no obvious bugs in v2.0, I'll upgrade a client project to make sure we got all the breaking changes covered, and then prepare the actual release of v2.0

🎉🎉🎉

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.

2 participants