Download the PHP package hakam/ai-log-inspector-agent without Composer

On this page you can find all versions of the php package hakam/ai-log-inspector-agent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-log-inspector-agent

๐Ÿค– AI Log Inspector Agent

Tests PHP Version Symfony AI ๐Ÿ‡ต๐Ÿ‡ธ Free Palestine

### ๐Ÿค–๐Ÿ’ฌ Chat With Your Logs Using Smart AI ๐Ÿ’ฌ๐Ÿค– **Transform debugging from tedious to effortless!** ๐Ÿ” โ†’ โšก Stop digging through dashboards and complex queries. Just **ask your logs directly** in plain English.

๐ŸŒ Traditional vs โšก AI-Powered

### ๐ŸŒ Traditional Way - Open **Kibana/ElasticSearch** dashboards - Write complex **Datadog queries** - Manual `grep` through log files - Filter thousands of log entries - Correlate timestamps & request IDs by hand - Spend hours finding root causes **Result:** Hours of manual work ๐Ÿ˜ฉ ### โšก AI Agent Way **Result:** Instant intelligent answers ๐Ÿง 

๐Ÿ“š Docs & Examples

Live docs: ramyhakam.github.io/ai-log-inspector-agent


๐Ÿ“š Playground To Validate with your own logs and AI platform.

Playground: ramyhakam.github.io/ai-log-inspector-agent


๐Ÿ’ฌ Real Examples - Ask Anything!

โš ๏ธ Note - Built on Symfony AI (experimental). The package itself is NOT production-ready; platform maturity depends on your provider and deployment setup.


โœจ What Makes It Special

๐Ÿ” Semantic Search - Understands context, not just keywords
๐Ÿง  AI Analysis - Explains what happened and why
โšก Lightning Fast - Get answers in seconds, not hours
๐Ÿ› ๏ธ Tool-Based - Extensible architecture with Symfony AI
๐Ÿ“Š Vector Powered - Smart similarity matching
๐Ÿ”„ Fallback Ready - Works even when AI is unavailable
๐ŸŒ Multi-Platform - OpenAI, Anthropic, and Ollama support
๐Ÿงฉ Multi-Tool - log_search + request_context for request tracing
๐Ÿ“‚ File Upload Indexing - Upload logs and index via LogFileIndexer
๐Ÿ’ฌ Session Chat - Persisted chat history for multi-turn investigations
๐Ÿงช Production Demo - Check Playground Demo


๐Ÿš€ Quick Start

Requirements

Install

Setup & Use


Advanced Questions

Response Structure

LogInspectorAgent::ask() returns a ResultInterface (use getContent() for the AI response). The structured array above is the tool-level output used internally and by the playground API.


โš™๏ธ Configuration

AI Platform Options

Vector Store Options

Custom System Prompts


๐Ÿงฐ Tools & Capabilities

LogSearchTool (log_search)

RequestContextTool (request_context)

Multi-tool agent example


๐Ÿ’ฌ Conversational Debugging


๐Ÿงช Playground API

Run the multi-platform playground API:

Key endpoints:

Features:


Environment variables:


๐Ÿ“š Local Docs

The documentation site content is in website/docs.

Live docs: ramyhakam.github.io/ai-log-inspector-agent


๐Ÿงช Testing & Validation - REAL WORKING PACKAGE

๐ŸŽฏ PROOF IT WORKS: Comprehensive end-to-end tests with real Ollama integration.

โœ… Full Functional Test Suite

13/13 tests PASSING with real Ollama (llama3.2:1b):

๐Ÿƒโ€โ™‚๏ธ Run Tests Yourself

Results: 104 successful assertions, 2-10s response times, multi-platform support proven.

๐Ÿš€ Extend Testing

Want to test with YOUR logs? Add more realistic log examples:

  1. Expand test/fixtures/logs/ with logs from:

    • โœ… Laravel applications - Real Laravel/Eloquent errors (included)
    • โœ… Kubernetes pods - OOMKilled, CrashLoopBackOff, resource issues (included)
    • โœ… Microservices - Circuit breakers, service mesh, distributed tracing (included)
    • Symfony applications
    • API gateways
    • Docker containers
  2. Test real scenarios:

    • "What caused the 3 AM outage?"
    • "Show me memory leaks in user service"
    • "Find all failed credit card transactions"
    • "Analyze API rate limiting errors"
  3. Validate with your AI platform:
    • OpenAI (full semantic search)
    • Anthropic (full semantic search)
    • Ollama (intelligent keyword fallback)

This package works with REAL data and REAL AI models - test it yourself!


๐Ÿค Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open Pull Request

**Made with โค๏ธ for developers who hate digging through logs!** *Transform your debugging experience today* ๐Ÿš€

All versions of ai-log-inspector-agent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/ai-agent Version ^0.3.0
symfony/ai-platform Version ^0.3.0
symfony/ai-store Version ^0.3.0
symfony/ai-ollama-platform Version ^0.3.0
symfony/ai-open-ai-platform Version ^0.3.0
symfony/ai-anthropic-platform Version ^0.3.0
psr/log Version ^3.0
symfony/ai-chat Version ^0.3.0
symfony/cache Version ^8.0
symfony/ai-cache-store Version ^0.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hakam/ai-log-inspector-agent contains the following files

Loading the files please wait ...