{"id":30737715,"url":"https://github.com/inference-gateway/documentation-agent","last_synced_at":"2026-02-15T03:03:06.052Z","repository":{"id":312411831,"uuid":"1047410216","full_name":"inference-gateway/documentation-agent","owner":"inference-gateway","description":"A2A agent server that provides Context7-style documentation capabilities for your agents.","archived":false,"fork":false,"pushed_at":"2025-09-22T00:56:59.000Z","size":161,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T02:37:25.914Z","etag":null,"topics":["a2a","a2a-protocol","a2a-server","oci","oci-image"],"latest_commit_sha":null,"homepage":"https://docs.inference-gateway.com/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inference-gateway.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-30T11:06:14.000Z","updated_at":"2025-09-22T00:57:01.000Z","dependencies_parsed_at":"2025-08-30T13:19:36.561Z","dependency_job_id":"7f2dbcb2-a845-4e06-aa2d-41a7203fa126","html_url":"https://github.com/inference-gateway/documentation-agent","commit_stats":null,"previous_names":["inference-gateway/documentation-agent"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/inference-gateway/documentation-agent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fdocumentation-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fdocumentation-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fdocumentation-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fdocumentation-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inference-gateway","download_url":"https://codeload.github.com/inference-gateway/documentation-agent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inference-gateway%2Fdocumentation-agent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708043,"owners_count":26031932,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["a2a","a2a-protocol","a2a-server","oci","oci-image"],"created_at":"2025-09-03T21:46:49.295Z","updated_at":"2026-02-15T03:03:06.039Z","avatar_url":"https://github.com/inference-gateway.png","language":null,"funding_links":[],"categories":["Agents"],"sub_categories":["Documentation"],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Documentation-Agent\n\n[![CI](https://github.com/inference-gateway/documentation-agent/workflows/CI/badge.svg)](https://github.com/inference-gateway/documentation-agent/actions/workflows/ci.yml)\n[![Go Version](https://img.shields.io/badge/Go-1.25.5+-00ADD8?style=flat\u0026logo=go)](https://golang.org)\n[![A2A Protocol](https://img.shields.io/badge/A2A-Protocol-blue?style=flat)](https://github.com/inference-gateway/adk)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n**A2A agent server that provides Context7-style documentation capabilities for your agents**\n\nA enterprise-ready [Agent-to-Agent (A2A)](https://github.com/inference-gateway/adk) server that provides AI-powered capabilities through a standardized protocol.\n\n\u003c/div\u003e\n\n## Quick Start\n\n```bash\n# Run the agent\ngo run .\n\n# Or with Docker\ndocker build -t documentation-agent .\ndocker run -p 8080:8080 documentation-agent\n```\n\n## Quick Install\n\nAdd this agent to your Inference Gateway CLI:\n\n```bash\ninfer agents add documentation-agent http://localhost:8080 \\\n  --oci ghcr.io/inference-gateway/documentation-agent:latest \\\n  --run\n```\n\n## Features\n\n- ✅ A2A protocol compliant\n- ✅ AI-powered capabilities\n- ✅ Streaming support\n- ✅ State transition history\n- ✅ Enterprise-ready\n- ✅ Minimal dependencies\n\n## Endpoints\n\n- `GET /.well-known/agent-card.json` - Agent metadata and capabilities\n- `GET /health` - Health check endpoint\n- `POST /a2a` - A2A protocol endpoint\n\n## Available Skills\n\n| Skill | Description | Parameters |\n|-------|-------------|------------|\n| `resolve_library_id` | Resolves library name to Context7-compatible library ID and returns matching libraries | libraryName |\n| `get_library_docs` | Fetches up-to-date documentation for a library using Context7-compatible library ID | context7CompatibleLibraryID, tokens, topic |\n\n## Configuration\n\nConfigure the agent via environment variables:\n\n| Category | Variable | Description | Default |\n|----------|----------|-------------|---------|\n| **Server** | `A2A_PORT` | Server port | `8080` |\n| **Server** | `A2A_DEBUG` | Enable debug mode | `false` |\n| **Server** | `A2A_AGENT_URL` | Agent URL for internal references | `http://localhost:8080` |\n| **Server** | `A2A_STREAMING_STATUS_UPDATE_INTERVAL` | Streaming status update frequency | `1s` |\n| **Server** | `A2A_SERVER_READ_TIMEOUT` | HTTP server read timeout | `120s` |\n| **Server** | `A2A_SERVER_WRITE_TIMEOUT` | HTTP server write timeout | `120s` |\n| **Server** | `A2A_SERVER_IDLE_TIMEOUT` | HTTP server idle timeout | `120s` |\n| **Server** | `A2A_SERVER_DISABLE_HEALTHCHECK_LOG` | Disable logging for health check requests | `true` |\n| **Agent Metadata** | `A2A_AGENT_CARD_FILE_PATH` | Path to agent card JSON file | `.well-known/agent-card.json` |\n| **LLM Client** | `A2A_AGENT_CLIENT_PROVIDER` | LLM provider (`openai`, `anthropic`, `azure`, `ollama`, `deepseek`) |`` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MODEL` | Model to use |`` |\n| **LLM Client** | `A2A_AGENT_CLIENT_API_KEY` | API key for LLM provider | - |\n| **LLM Client** | `A2A_AGENT_CLIENT_BASE_URL` | Custom LLM API endpoint | - |\n| **LLM Client** | `A2A_AGENT_CLIENT_TIMEOUT` | Timeout for LLM requests | `30s` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_RETRIES` | Maximum retries for LLM requests | `3` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_CHAT_COMPLETION_ITERATIONS` | Max chat completion rounds | `10` |\n| **LLM Client** | `A2A_AGENT_CLIENT_MAX_TOKENS` | Maximum tokens for LLM responses |`4096` |\n| **LLM Client** | `A2A_AGENT_CLIENT_TEMPERATURE` | Controls randomness of LLM output |`0.7` |\n| **Capabilities** | `A2A_CAPABILITIES_STREAMING` | Enable streaming responses | `true` |\n| **Capabilities** | `A2A_CAPABILITIES_PUSH_NOTIFICATIONS` | Enable push notifications | `false` |\n| **Capabilities** | `A2A_CAPABILITIES_STATE_TRANSITION_HISTORY` | Track state transitions | `true` |\n| **Task Management** | `A2A_TASK_RETENTION_MAX_COMPLETED_TASKS` | Max completed tasks to keep (0 = unlimited) | `100` |\n| **Task Management** | `A2A_TASK_RETENTION_MAX_FAILED_TASKS` | Max failed tasks to keep (0 = unlimited) | `50` |\n| **Task Management** | `A2A_TASK_RETENTION_CLEANUP_INTERVAL` | Cleanup frequency (0 = manual only) | `5m` |\n| **Storage** | `A2A_QUEUE_PROVIDER` | Storage backend (`memory` or `redis`) | `memory` |\n| **Storage** | `A2A_QUEUE_URL` | Redis connection URL (when using Redis) | - |\n| **Storage** | `A2A_QUEUE_MAX_SIZE` | Maximum queue size | `100` |\n| **Storage** | `A2A_QUEUE_CLEANUP_INTERVAL` | Task cleanup interval | `30s` |\n| **Authentication** | `A2A_AUTH_ENABLE` | Enable OIDC authentication | `false` |\n\n## Development\n\n```bash\n# Generate code from ADL\ntask generate\n\n# Run tests\ntask test\n\n# Build the application\ntask build\n\n# Run linter\ntask lint\n\n# Format code\ntask fmt\n```\n\n### Debugging\n\nUse the [A2A Debugger](https://github.com/inference-gateway/a2a-debugger) to test and debug your A2A agent during development. It provides a web interface for sending requests to your agent and inspecting responses, making it easier to troubleshoot issues and validate your implementation.\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks submit \"What are your skills?\"\n```\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks list\n```\n\n```bash\ndocker run --rm -it --network host ghcr.io/inference-gateway/a2a-debugger:latest --server-url http://localhost:8080 tasks get \u003ctask ID\u003e\n```\n\n## Deployment\n\n### Docker\n\nThe Docker image can be built with custom version information using build arguments:\n\n```bash\n# Build with default values from ADL\ndocker build -t documentation-agent .\n\n# Build with custom version information\ndocker build \\\n  --build-arg VERSION=1.2.3 \\\n  --build-arg AGENT_NAME=\"My Custom Agent\" \\\n  --build-arg AGENT_DESCRIPTION=\"Custom agent description\" \\\n  -t documentation-agent:1.2.3 .\n```\n\n**Available Build Arguments:**\n\n- `VERSION` - Agent version (default: `0.2.24`)\n- `AGENT_NAME` - Agent name (default: `documentation-agent`)\n- `AGENT_DESCRIPTION` - Agent description (default: `A2A agent server that provides Context7-style documentation capabilities for your agents`)\n\nThese values are embedded into the binary at build time using linker flags, making them accessible at runtime without requiring environment variables.\n\n## License\n\nMIT License - see LICENSE file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finference-gateway%2Fdocumentation-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finference-gateway%2Fdocumentation-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finference-gateway%2Fdocumentation-agent/lists"}