ACPex.Schema.Session.NewRequest (ACPex v0.1.0)

View Source

Request to create a new conversation session.

Sent by the client to start a new conversation with the agent.

Required Fields

  • cwd - Current working directory (string)
  • mcp_servers - List of MCP server configurations (list of maps)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Session.NewRequest{
  cwd: "/path/to/project",
  mcp_servers: []
}

JSON Representation

{
  "cwd": "/path/to/project",
  "mcpServers": []
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Session.NewRequest{
  cwd: String.t(),
  mcp_servers: [map()],
  meta: map() | nil
}

Functions

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

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

Creates a changeset for validation.

Required Fields

  • cwd - Must be present
  • mcp_servers - Must be present (can be empty list)