#2725·smolagents

ActionStep.dict() 为 observations_images 返回原始的非 JSON 序列化的字节

作者: VANDRANKI创建于 2026年9月1日更新于 2026年9月15日

`src/smolagents/memory.py` 中的 `ActionStep.dict()` 的目的是生成一个 JSON 可序列化的步骤表示:其他所有字段都会经过 `make_json_serializable()` 或显式的 `.isoformat()`/`.dict()` 转换。`observations_images` 是一个例外:

内容来源: huggingface/smolagents