ADK.Artifact.InMemory (ADK v0.0.1-alpha.1)

Copy Markdown View Source

In-memory artifact store backed by an Agent process.

Artifacts are stored in a nested map keyed by {app_name, user_id, session_id, filename} with a list of versions (newest first).

Usage

{:ok, pid} = ADK.Artifact.InMemory.start_link()
runner = ADK.Runner.new(app_name: "app", agent: agent, artifact_service: {ADK.Artifact.InMemory, pid: pid})

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Agent.on_start()