ACPex.Schema.Client.FsWriteTextFileRequest (ACPex v0.1.0)

View Source

Request from agent to write a text file.

Sent by the agent to request the client to write content to a file on the local filesystem. This is a bidirectional request (agent → client).

Required Fields

  • session_id - The session identifier (string)
  • path - The file path to write (string)
  • content - The content to write (string)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Client.FsWriteTextFileRequest{
  session_id: "session-123",
  path: "/path/to/file.txt",
  content: "New file contents"
}

JSON Representation

{
  "sessionId": "session-123",
  "path": "/path/to/file.txt",
  "content": "New file contents"
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Client.FsWriteTextFileRequest{
  content: String.t(),
  meta: map() | nil,
  path: String.t(),
  session_id: String.t()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • session_id - Must be present
  • path - Must be present
  • content - Must be present