View Source API Reference agens v0.2.0

Modules

Agens is used to create multi-agent workflows with language models.

Behaviour for side-effecting backends that observe and extend a running Job.

A Job defines a multi-agent workflow as a map of Agens.Job.Nodes.

The Config struct defines the static shape of a Job.

The Node struct defines a single node within a Job.

Describes a sub-Job to be started in place of a Serving call on a Job Node.

The Message struct defines the details of a message passed between Jobs and Servings.

Telemetry.Metrics definitions for the events emitted by Agens.

The Prefixes struct is used to configure prompt prefixes for building advanced prompts.

Builds the system/user prompt pairs for a Agens.Message prior to LM inference.

Represents a resource attached to an Agens.Job.Node and made available to a Serving prior to inference.

Behaviour and macro for routing a Node's result to the next instruction(s).

A boolean comparison against a structured Router output value.

Declares a single structured output field that a Router expects from a Serving.

JSON Schema fragments used to constrain structured LM responses.

The Serving module provides functions for starting, stopping and running Servings.

The Config struct represents the configuration for a Serving process.

The structured result returned from a Serving's Agens.Serving.handle_result/3 (or Agens.Serving.handle_sub/3) callback.

The Supervisor module for the Agens application.