ExAgent.Tool.ResultStore.ETS (ExAgent v3.0.0)

View Source

A host-supervised, private ETS result store. Limits apply across all runs using this instance. Oldest writes are evicted first. Reads do not extend the TTL. An entry larger than the byte budget is rejected without eviction.

Stability — Candidate.

children = [{ExAgent.Tool.ResultStore.ETS, name: MyApp.ToolResults}]

Options are :max_bytes (total content bytes, default 8 MiB), :max_entries (default 256), :ttl_ms (default 300,000, up to 4,294,967,295), and an optional local registered :name. Stopping the owner releases its table and all stored content. Reads enforce expiry immediately. The periodic sweep reclaims idle expired entries within one additional TTL interval.

Summary

Functions

Returns a specification to start this module under a supervisor.

Start a result store linked to the caller.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

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

Start a result store linked to the caller.