API Reference ash_ai v0.1.4

View Source

Modules

Documentation for AshAi.

Builtin generic action implementations

A generic action impl that returns structured outputs from an LLM matching the action return.

A change that vectorizes the current values of attributes for a given record. Used by the manual vectorization strategy, so you can decide later when to run the vectorization action.

Vectorizes attributes inline immediately after they are changed

Run an ash_oban trigger when embeddings need to be regenerated.

A check that is true when the actor is %AshAi{}

A behaviour that defines the dimensions of the vector, and how to generate the embedding

Introspection functions for the AshAi extension.

Model Context Protocol (MCP) implementation for Ash Framework.

Place in your endpoint's code_reloading section to expose Ash dev MCP at /mcp/ash

MCP Router implementing the RPC functionality over HTTP.

Implementation of the Model Context Protocol (MCP) RPC functionality.

An action exposed to LLM agents

A validation that passes if the actor is %AshAi{}

Mix Tasks

Generates the resources and views for a conversational UI backed by ash_postgres and ash_oban

Sets up an MCP server for your application

Installs AshAi. Call with mix igniter.install ash_ai. Requires igniter to run.