CMDC.Backend.Results.WriteResult (cmdc v0.5.2)

Copy Markdown View Source

backend.write/2 返回。

files_update 字段用于 LangGraph state-style backend(如 State)返回 状态更新 map;FilesystemBackend / SandboxBackend 已直接写盘则为 nil

Summary

Types

t()

@type t() :: %CMDC.Backend.Results.WriteResult{
  error: nil | atom() | String.t(),
  files_update: map() | nil,
  path: String.t() | nil
}

Functions

error(reason)

@spec error(atom() | String.t()) :: t()

ok(path, files_update \\ nil)

@spec ok(String.t(), map() | nil) :: t()