main: 增强 Agent Run 调度可靠性与幂等性

- 默认切换 AgentProvider 为 HttpAgentProvider,增强网络请求的容错和重试机制
- 优化 Run 逻辑,支持多场景去重与并发保护
- 添加 Redis 发布失败的日志记录以提升问题排查效率
- 扩展 OpenAPI 规范,新增 Error 和 Run 状态相关模型
- 增强测试覆盖,验证调度策略和重复请求的幂等性
- 增加数据库索引以优化查询性能
- 更新所有相关文档和配置文件
This commit is contained in:
2025-12-18 17:41:42 +08:00
parent 2ad101c297
commit 6d934f4e34
16 changed files with 634 additions and 118 deletions

View File

@@ -0,0 +1,16 @@
<?php
namespace App\Services\Agent;
class ProviderException extends \RuntimeException
{
public function __construct(
public readonly string $errorCode,
string $message,
public readonly bool $retryable = false,
public readonly ?int $httpStatus = null,
public readonly ?string $rawMessage = null,
) {
parent::__construct($message);
}
}