agent-substrate / agent-substrate/env

WriteFileRequest oneof

未關閉
#39 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Go
星號
2
分支
2
平均合併
21 小時 1 分鐘
30 天內合併 PR
28

描述

`FileSystemService.WriteRequest` should either accept `path` + `mode` or a `FileChunk` per incoming message. Introducing the `oneof` will help with the ambiguity of what happens when all the fields are set.

It could look like:

```
// Metadata required to initialize the file write stream.
message FileMetadata {
// Absolute or workspace-relative path of the file to write.
string path = 1;
// Optional POSIX file mode permission (e.g. 0644 or 0755).
uint32 mode = 2;
}

// Streamed request chunk for writing data to a file.
message WriteFileRequest {
oneof request {
// Sent only on the first message to initialize the stream.
FileMetadata metadata = 1;

// Sent on all subsequent messages containing the file data.
FileChunk chunk = 2;
}
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。