Pydantic AI Harness 推出 AWSLambdaDurability,让智能体在 AWS Lambda 上可持久运行
Pydantic AI Harness 发布 AWSLambdaDurability 能力,把每次模型请求、函数工具调用、MCP 调用和动态工具集解析都记录为 AWS Lambda durable functions 的步骤,恢复执行时从存储结果中读取已完成步骤。使用时需在构建智能体时挂载该能力,并用 durable_agent_handler 改造处理函数,@durable_execution 必须位于最外层。步骤默认至少执行一次并带重试,副作用需保持幂等;改变步骤数量或顺序会使在途执行失效,需发布新版本并让旧版本执行完。
ock appears in the examples because it is the provider most Lambda deployments reach for first. What does checkpointing cost? Steps consume a durable execution's operations and storage quotas. A turn consumes one model step plus one step per tool call. Large tool results consume the storage budget, so store references, not payloads, or use the FileSystem serdes to keep large values on Amazon S3 Files and checkpoint only a file pointer. You benefit because you do not pay for repeated model reques
匹配字段正文



