AshAi.McpResource.Contents.Context (ash_ai v1.5.6)

Copy Markdown View Source

The context passed to an AshAi.McpResource.Contents callback.

  • :mcp_resource - the %AshAi.McpResource{} that was read
  • :uri - the URI that was read
  • :arguments - the arguments the action ran with (string keys), including those taken from a URI template
  • :actor, :tenant, :context - what the action ran with

Summary

Types

t()

@type t() :: %AshAi.McpResource.Contents.Context{
  actor: term(),
  arguments: map(),
  context: map(),
  mcp_resource: AshAi.McpResource.t(),
  tenant: term(),
  uri: String.t()
}