文件数据 typed map(对标 deepagents FileData TypedDict)。
格式版本
- v1(legacy):
content为[binary](按\n分割的行列表),无encoding字段 - v2(current):
content为binary,加encoding字段("utf-8"或"base64")
Backend 接受两种格式作为输入,输出推荐 v2。
Summary
Functions
构建 v2 格式文件数据。
返回 v1(legacy)格式(lines list)。
字符串内容(处理 v1/v2 两种格式)。
从 v1 (lines) 转 v2 (string);幂等。
Types
Functions
构建 v2 格式文件数据。
返回 v1(legacy)格式(lines list)。
字符串内容(处理 v1/v2 两种格式)。
从 v1 (lines) 转 v2 (string);幂等。