Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Rename pckg#19

Merged
javidsegura merged 1 commit intomainfrom
feature/fault_tolerance
Aug 5, 2025
Merged

Rename pckg#19
javidsegura merged 1 commit intomainfrom
feature/fault_tolerance

Conversation

@javidsegura
Copy link
Contributor

@javidsegura javidsegura commented Aug 5, 2025

Summary by CodeRabbit

  • Refactor

    • Updated all references from the previous package name to the new package name throughout the project.
    • Renamed several classes and updated import paths to align with the new package structure.
    • Adjusted class inheritance and method signatures to use updated class names.
    • Removed obsolete package initializer and centralized import/export declarations.
    • Updated project name in configuration files.
  • Chores

    • Added and updated package initializer files to improve import organization.
    • Corrected import statements in example scripts and test files.

@coderabbitai
Copy link

coderabbitai bot commented Aug 5, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update refactors import statements and class names throughout the codebase, transitioning references from the agentic_ai package to the new agnostic_agent package. Several classes are renamed for clarity, package initializers are added or removed, and the project name is updated in the configuration. No functional or logic changes are introduced.

Changes

Cohort / File(s) Change Summary
Example Scripts: Import Refactor
examples/01-no-tools/run.py, examples/02-tools/hybrid/run.py, examples/02-tools/parallel/run.py, examples/02-tools/sequential/run.py, examples/03-file-upload/run.py, examples/04-prompt-chaining/run.py
Updated imports from agentic_ai to agnostic_agent for LLMAgent and related classes. No logic changes.
Example Toolkits: Import Refactor
examples/02-tools/hybrid/utils/toolkit.py, examples/02-tools/parallel/utils/toolkit.py, examples/02-tools/sequential/utils/toolkit.py, examples/05-orchestrator-worker/utils/toolkit.py
Changed import paths from agentic_ai to agnostic_agent for toolkit utilities. No logic changes.
Orchestrator Example: Miscellaneous Cleanup
examples/05-orchestrator-worker/run.py
Updated imports to agnostic_agent, removed blank lines and a comment. No functional changes.
Project Configuration
pyproject.toml
Changed project name from "agentic-ai-framework" to "agnostic_agent".
Removed Old LLM Provider Init
src/agentic_ai/llm_provider/__init__.py
Deleted package initializer and export declarations for LLM provider classes.
Agnostic Agent Init Refactor
src/agnostic_agent/__init__.py
Updated imports to reference new LLM backend classes from llm_backends instead of llm_provider.
Config Path Update
src/agnostic_agent/config/config.py
Changed config YAML path to use agnostic_agent directory.
LLM Backends: New Package Initializers
src/agnostic_agent/llm_backends/__init__.py, src/agnostic_agent/llm_backends/clients/__init__.py, src/agnostic_agent/llm_backends/providers/__init__.py
Added __init__.py files to expose client and provider classes in new package structure.
LLM Backend Clients: Renaming and Import Adjustments
src/agnostic_agent/llm_backends/clients/ollama.py, src/agnostic_agent/llm_backends/clients/open_router.py
Renamed classes (OllamaOllamaClient, OpenRouterOpenRouterClient), updated import paths.
LLM Backend Providers: Renaming and Import Adjustments
src/agnostic_agent/llm_backends/providers/base_llm_provider.py, src/agnostic_agent/llm_backends/providers/openai_provider.py
Renamed LLMProvider to BaseLLMProvider, updated import paths, and changed class inheritance accordingly.
LLM Bridge Refactor
src/agnostic_agent/llm_bridge.py
Updated imports and class references to new client/provider names, updated factory method return type, added debug log.
Schemas and Test Import Fixes
src/agnostic_agent/utils/core/schemas.py, tests/test_exception_retry_controller.py
Corrected import paths to use agnostic_agent instead of agentic_ai.

Sequence Diagram(s)

sequenceDiagram
    participant UserScript as Example Script
    participant AgnosticAgent as agnostic_agent
    participant LLMBackends as llm_backends
    participant Client as OllamaClient/OpenRouterClient
    participant Provider as BaseLLMProvider/OpenAIProvider

    UserScript->>AgnosticAgent: import LLMAgent
    AgnosticAgent->>LLMBackends: import Client, Provider
    UserScript->>LLMAgent: instantiate/use agent
    LLMAgent->>Client: delegate LLM tasks
    Client->>Provider: utilize LLM provider logic
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

In burrows deep, I tweak and hop,
From agentic_ai I make the swap.
Agnostic now, our code’s delight,
With imports changed and names made right.
A carrot toast to names anew—
🥕 Refactor done, we’re hopping through!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between be74971 and 233c577.

📒 Files selected for processing (25)
  • examples/01-no-tools/run.py (1 hunks)
  • examples/02-tools/hybrid/run.py (1 hunks)
  • examples/02-tools/hybrid/utils/toolkit.py (1 hunks)
  • examples/02-tools/parallel/run.py (1 hunks)
  • examples/02-tools/parallel/utils/toolkit.py (1 hunks)
  • examples/02-tools/sequential/run.py (1 hunks)
  • examples/02-tools/sequential/utils/toolkit.py (1 hunks)
  • examples/03-file-upload/run.py (1 hunks)
  • examples/04-prompt-chaining/run.py (1 hunks)
  • examples/05-orchestrator-worker/run.py (1 hunks)
  • examples/05-orchestrator-worker/utils/toolkit.py (1 hunks)
  • pyproject.toml (1 hunks)
  • src/agentic_ai/llm_provider/__init__.py (0 hunks)
  • src/agnostic_agent/__init__.py (1 hunks)
  • src/agnostic_agent/config/config.py (1 hunks)
  • src/agnostic_agent/llm_backends/__init__.py (1 hunks)
  • src/agnostic_agent/llm_backends/clients/__init__.py (1 hunks)
  • src/agnostic_agent/llm_backends/clients/ollama.py (1 hunks)
  • src/agnostic_agent/llm_backends/clients/open_router.py (1 hunks)
  • src/agnostic_agent/llm_backends/providers/__init__.py (1 hunks)
  • src/agnostic_agent/llm_backends/providers/base_llm_provider.py (1 hunks)
  • src/agnostic_agent/llm_backends/providers/openai_provider.py (2 hunks)
  • src/agnostic_agent/llm_bridge.py (2 hunks)
  • src/agnostic_agent/utils/core/schemas.py (1 hunks)
  • tests/test_exception_retry_controller.py (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

The PR author is not assigned a seat. To perform a comprehensive line-by-line review, please assign a seat to the pull request author through the subscription management page by visiting https://app.coderabbit.ai/login.

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Join our Discord community for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@javidsegura javidsegura merged commit 56c594f into main Aug 5, 2025
0 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant