{"id":25434562,"url":"https://github.com/nazareai/nazareai-framework","last_synced_at":"2025-05-14T21:13:41.973Z","repository":{"id":276536614,"uuid":"929563045","full_name":"nazareai/NazareAI-Framework","owner":"nazareai","description":"NazareAI framework for building AI agents with modular architecture and extensive integration capabilities.","archived":false,"fork":false,"pushed_at":"2025-02-08T21:43:02.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-17T06:17:47.922Z","etag":null,"topics":["agent","agentic-ai","framework"],"latest_commit_sha":null,"homepage":"https://nazareai.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nazareai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-08T20:48:21.000Z","updated_at":"2025-02-08T21:43:07.000Z","dependencies_parsed_at":"2025-02-08T21:39:59.228Z","dependency_job_id":null,"html_url":"https://github.com/nazareai/NazareAI-Framework","commit_stats":null,"previous_names":["nazareai/nazareai-framework"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazareai%2FNazareAI-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazareai%2FNazareAI-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazareai%2FNazareAI-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nazareai%2FNazareAI-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nazareai","download_url":"https://codeload.github.com/nazareai/NazareAI-Framework/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254227625,"owners_count":22035671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","agentic-ai","framework"],"created_at":"2025-02-17T06:17:49.898Z","updated_at":"2025-05-14T21:13:41.888Z","avatar_url":"https://github.com/nazareai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NazareAI Framework\n\nA powerful and flexible framework for building AI agents with modular architecture and extensive integration capabilities.\n\n## Features\n\n- **Advanced Model Integration**\n  - OpenRouter integration with Claude-3 and other leading models\n  - Streaming response support\n  - Configurable model parameters and settings\n\n- **Intelligent Research Capabilities**\n  - Built-in research agent with web search integration\n  - Configurable research depth and output formats\n  - Academic and report-style formatting options\n\n- **Modular Prompt System**\n  - YAML-based prompt template management\n  - Version control for templates\n  - Dynamic parameter substitution\n  - Context-aware prompt generation\n\n- **Plugin Architecture**\n  - Extensible plugin system\n  - Pre/post-processing hooks\n  - Built-in SerpAPI integration for web search\n  - Easy custom plugin development\n\n- **Robust Configuration**\n  - Environment-based configuration\n  - Type-safe settings with Pydantic\n  - Flexible model and plugin configuration\n  - Debug mode support\n\n- **Developer Experience**\n  - Async/await support throughout\n  - Comprehensive logging system\n  - Command-line interface tools\n  - Clear error handling and debugging\n\n- **Production Ready**\n  - Exception handling and retries\n  - Resource cleanup\n  - Configurable timeouts\n  - API key management\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/nazareai/NazareAI-Framework.git\n   cd NazareAI-Framework\n   ```\n\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv .venv\n   source .venv/bin/activate  # On Windows: .venv\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Set up environment variables:\n   ```bash\n   cp .env.example .env\n   # Edit .env with your configuration\n   ```\n\n## Quick Start\n\n### Basic Usage\n\n```python\nfrom nazare.core import Agent, AgentConfig\nfrom nazare.models import OpenRouterConfig, OpenRouterModel\nfrom nazare.plugins import SerpApiConfig, SerpApiPlugin\nfrom nazare.utils.config import load_settings\n\n# Load settings from .env\nsettings = load_settings()\n\n# Configure model\nmodel_config = OpenRouterConfig(\n    model_name=\"anthropic/claude-3-opus-20240229\",\n    api_key=settings.openrouter_api_key\n)\nmodel = OpenRouterModel(model_config)\n\n# Configure agent\nagent_config = AgentConfig(\n    name=\"basic-assistant\",\n    description=\"A simple AI assistant\",\n    model_settings=model_config,\n    prompt_library_path=\"prompts\"\n)\n\n# Create and initialize agent\nagent = Agent(config=agent_config, model=model)\nawait agent.initialize()\n\n# Process queries\nresponse = await agent.process(\"What is the capital of France?\")\nprint(response)\n\n# Cleanup\nawait agent.cleanup()\n```\n\n### Research Agent Example\n\n```python\n# Create a research agent with search capabilities\nmodel_config = OpenRouterConfig(\n    model_name=settings.default_model,\n    api_key=settings.openrouter_api_key\n)\nmodel = OpenRouterModel(model_config)\n\n# Configure search plugin\nserpapi_config = SerpApiConfig(\n    api_key=settings.serpapi_api_key,\n    max_results=10\n)\nsearch_plugin = SerpApiPlugin(config=serpapi_config.model_dump())\n\n# Configure agent\nagent_config = AgentConfig(\n    name=\"research-assistant\",\n    description=\"An agent that conducts thorough research\",\n    model_settings=model_config,\n    prompt_library_path=\"prompts\"\n)\n\n# Create agent with plugin\nagent = Agent(config=agent_config, model=model, plugins=[search_plugin])\nawait agent.initialize()\n\n# Research with template\nresponse = await agent.process(\n    \"What are the latest developments in fusion energy?\",\n    template_name=\"research\",\n    template_version=\"1.0.0\",\n    depth=\"comprehensive\",\n    format=\"academic\"\n)\nprint(response)\n\nawait agent.cleanup()\n```\n\n### Command Line Usage\n\nThe framework includes ready-to-use command line tools:\n\n```bash\n# Basic agent\npython examples/basic_agent.py\n\n# Research agent with options\npython examples/research_agent.py \"your research topic\" --depth comprehensive --format academic\n```\n\n## Project Structure\n\n```\nnazare/\n├── core/           # Core framework components\n├── models/         # Model integrations\n├── plugins/        # Plugin system\n├── prompts/        # Prompt templates\n├── security/       # Security features\n├── utils/          # Utility functions\n└── web/           # Web interface\n```\n\n## Contributing\n\n1. Fork the repository\n2. Create a feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a Pull Request\n\n## License\n\nThis project is licensed under the Apache 2.0 Licence.\n\n## Support\n\nFor support, please open an issue in the GitHub repository or contact the maintainers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazareai%2Fnazareai-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnazareai%2Fnazareai-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnazareai%2Fnazareai-framework/lists"}