Read and write persistent state for an AI agent, optionally scoped to a specific inbox or thread.
Summary
Functions
Retrieve Agent Memory
Retrieve the memory for an AI agent.
Arguments
client— ANuntly.Clientreturned byNuntly.new/1.agent_id— Required path parameter, string. The agent identifier.opts— Optional keyword list passed to Req for this request.
Example
client = Nuntly.new(api_key: "ntly_...")
Nuntly.Agents.retrieve_agent_memory(client, "agent-id")
Upsert Agent Memory
Create or update the memory for an AI agent.
Arguments
client— ANuntly.Clientreturned byNuntly.new/1.agent_id— Required path parameter, string. The agent identifier.body— application/json request body usingAgentMemoryRequest. Accepted fields:"inboxId"(string, optional) — The inbox id to scope the memory to."threadId"(string, optional) — The thread id to scope the memory to."memory"(map, required) — The agent memory key-value data."summary"(string or nil, optional) — A human-readable conversation summary.
opts— Optional keyword list passed to Req for this request.
Example
client = Nuntly.new(api_key: "ntly_...")
Nuntly.Agents.upsert_agent_memory(
client,
"agent-id",
%{
"memory" => %{
"key" => "value"
}
}
)