Jidoka.Memory.RecallRequest (Jidoka v0.9.0)

Copy Markdown View Source

Request sent to a memory store before prompt assembly.

Summary

Functions

Builds a memory recall request from keyword or map attributes.

Builds a memory recall request and raises if the attributes are invalid.

Returns the Zoi schema for a memory recall request.

Types

t()

@type t() :: %Jidoka.Memory.RecallRequest{
  agent_id: binary(),
  limit: integer(),
  metadata: map(),
  query: binary(),
  scope: :agent | :session,
  session_id: nil | nil | binary()
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

Builds a memory recall request from keyword or map attributes.

new!(attrs)

@spec new!(keyword() | map()) :: t()

Builds a memory recall request and raises if the attributes are invalid.

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for a memory recall request.