armin/ai-agent 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

armin/ai-agent

Composer 安装命令:

composer require armin/ai-agent

包简介

Generic AI code assistant client for PHP.

README 文档

README

armin/ai-agent is a generic AI code assistant client for PHP. It ships with built-in tools for reading files, finding files, writing files, viewing images, generating images, and running local commands, while keeping the tool system open for consuming applications to register additional actions at runtime.

Requirements

  • PHP ^8.4
  • Composer

Installation

composer require armin/ai-agent

Quick Configuration

The package reads the API key from AI_AGENT_API_KEY by default. The CLI reads its default model from AI_AGENT_DEFAULT_MODEL. Models must be configured as provider:model, for example openai:gpt-5.

The environment variable names are exposed as constants on Armin\AiAgent\AiAgentConfig:

  • AiAgentConfig::API_KEY_ENV_VAR
  • AiAgentConfig::MODEL_ENV_VAR
export AI_AGENT_API_KEY=your-key
export AI_AGENT_DEFAULT_MODEL=openai:gpt-5

Documentation

Supported Providers

  • openai
  • anthropic
  • gemini

Notes

  • Authentication is intentionally out of scope for this package.
  • Requests are executed through Symfony AI provider bridges.
  • The CLI mode is non-interactive. Use a session file if you want multi-turn history between invocations.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 13
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-26