ReqManagedAgents.Artifacts.ClaudeFiles (ReqManagedAgents v0.3.0)

Copy Markdown View Source

ReqManagedAgents.Artifacts store over the Anthropic Files API, scoped to one session. list uses the session-scoped file listing (the only way to discover server-minted file ids for files the agent wrote); fetch/delete act on the newest record when a name appears more than once (re-runs accumulate); put uploads and attaches at opts[:mount_path] (default "/data/<name>").

The default mount path is built as "/data/" <> name with no sanitization — callers passing untrusted names must validate them (path traversal, e.g. "../x", is forwarded verbatim).

Summary

Functions

Build a store term. client_mod is injectable for tests (defaults to the live client).

Functions

store(client, session_id, opts \\ [])

Build a store term. client_mod is injectable for tests (defaults to the live client).