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

View Source

Request from agent to read a text file.

Sent by the agent to request the client to read a file from the local filesystem. This is a bidirectional request (agent → client).

Required Fields

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

Optional Fields

  • line - Starting line number (integer)
  • limit - Maximum number of lines to read (integer)
  • meta - Additional metadata (map)

Example

%ACPex.Schema.Client.FsReadTextFileRequest{
  session_id: "session-123",
  path: "/path/to/file.txt"
}

JSON Representation

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

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Client.FsReadTextFileRequest{
  limit: integer() | nil,
  line: integer() | nil,
  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