{"id":29035518,"url":"https://github.com/maestroerror/gogodev-commenter-agent","last_synced_at":"2026-02-02T06:07:26.682Z","repository":{"id":299880987,"uuid":"1004459022","full_name":"MaestroError/gogodev-commenter-agent","owner":"MaestroError","description":"LarAgent example implementation using OpenAI models to replay the \"comments\"","archived":false,"fork":false,"pushed_at":"2025-06-18T18:57:55.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"maestro","last_synced_at":"2025-06-26T12:11:32.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaestroError.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,"zenodo":null}},"created_at":"2025-06-18T16:49:30.000Z","updated_at":"2025-06-18T18:57:58.000Z","dependencies_parsed_at":"2025-06-18T19:50:10.213Z","dependency_job_id":"dc5ee78c-cfa3-4852-9bc7-8b478ed02ccc","html_url":"https://github.com/MaestroError/gogodev-commenter-agent","commit_stats":null,"previous_names":["maestroerror/gogodev-commenter-agent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MaestroError/gogodev-commenter-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fgogodev-commenter-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fgogodev-commenter-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fgogodev-commenter-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fgogodev-commenter-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaestroError","download_url":"https://codeload.github.com/MaestroError/gogodev-commenter-agent/tar.gz/refs/heads/maestro","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaestroError%2Fgogodev-commenter-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29006727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T04:25:24.522Z","status":"ssl_error","status_checked_at":"2026-02-02T04:24:51.069Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-06-26T12:10:36.611Z","updated_at":"2026-02-02T06:07:26.667Z","avatar_url":"https://github.com/MaestroError.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Commenter Agent\n\nA Laravel-based application that demonstrates AI-powered comment analysis and response generation with [LarAgent](https://github.com/maestroerror/laragent) package. This project showcases how to integrate AI agents for sentiment analysis and automated response generation for product reviews.\n\n## Features\n\n- **Sentiment Analysis**: Automatically detects whether a review is positive or negative\n- **AI-Powered Responses**: Generates contextually appropriate responses to reviews\n- **Laravel Integration**: Built on the Laravel framework for robust backend functionality\n- **Custom AI Agents**: Implements specialized agents for different tasks\n- **Example Reviews**: Comes with sample reviews for demonstration purposes\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- PHP 8.2 or higher\n- Composer (PHP package manager)\n- Node.js and npm (for frontend assets)\n- An OpenAI API key or compatible LLM provider\n\n## Installation\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/yourusername/gogodev-commenter-agent.git\ncd gogodev-commenter-agent\n```\n\n### 2. Install PHP Dependencies\n\n```bash\ncomposer install\n```\n\n### 3. Install NPM Dependencies\n\n```bash\nnpm install\nnpm run build\n```\n\n### 4. Configure Environment\n\nCopy the example environment file and generate an application key:\n\n```bash\ncp .env.example .env\nphp artisan key:generate\n```\n\n### 5. Configure AI Provider\n\nUpdate your `.env` file with your AI provider credentials. For OpenAI, add:\n\n```env\nOPENAI_API_KEY=your_openai_api_key\n```\n\n## Usage\n\n### Running the Application\n\nStart the development server:\n\n```bash\nphp artisan serve\n```\n\nVisit `http://localhost:8000` in your browser to access the application.\n\n### Review Management\n\nThe application comes with sample reviews that you can view and interact with. The main features include:\n\n1. **View Reviews**: See a list of sample reviews\n2. **Analyze Sentiment**: Check the sentiment (positive/negative) of each review\n3. **Generate Responses**: Get AI-generated responses to reviews\n\n### Customizing Reviews\n\nTo add or modify reviews, edit the `$comments` array in `app/Http/Controllers/ReviewsController.php`.\n\n## AI Agents\n\nThe application includes two main AI agents:\n\n### 1. SentimentChecker\n\nAnalyzes the sentiment of a review (positive/negative).\n\n```php\nuse App\\AiAgents\\SentimentChecker;\n// ....\n$response = SentimentChecker::for('sentiment_check')-\u003erespond($comment['comment']);\ndd($response['sentiment']); // true/false\n```\n\n### 2. ReplyAgent\n\nGenerates responses to reviews based on their sentiment.\n\n```php\nuse App\\AiAgents\\ReplyAgent;\n// ....\n$response = ReplyAgent::for('example')-\u003esetReview($comment)-\u003erespond();\n// Uses tool with review id and reply to add review to storage (as a txt file)\n```\n\n## Configuration\n\nYou can configure the AI models and behavior in `config/laragent.php`:\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open-sourced under the [MIT License](LICENSE).\n\n## Support\n\nFor support, please open an issue in the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaestroerror%2Fgogodev-commenter-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaestroerror%2Fgogodev-commenter-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaestroerror%2Fgogodev-commenter-agent/lists"}