ArchAstro. V1. AgentRoutines. AgentRoutineRuns
(archastro v0.2.0)
Copy Markdown
AgentRoutineRun API resource.
Summary
Functions
@spec get(ArchAstro.Client.t(), String.t()) :: {:ok, ArchAstro.Types.AgentRoutineRun.t()} | {:error, ArchAstro.Error.reason()}
Retrieve a routine run
Returns a single routine run by its ID. The run includes status, payload, result, duration, and any structured response produced by the routine's agent.
The authenticated principal must have access to the app that owns the run. When your API key is scoped to an app, the run must belong to that app or a 403 is returned.
The requested routine run.
journal(client, run, params \\ %ArchAstro.Types.Operations.GetApiV1AgentRoutinesRunsRunJournal.Params{})
@spec journal( ArchAstro.Client.t(), String.t(), ArchAstro.Types.Operations.GetApiV1AgentRoutinesRunsRunJournal.Params.t() ) :: {:ok, ArchAstro.Types.RunJournalPage.t()} | {:error, ArchAstro.Error.reason()}
List a routine run journal
Returns the durable workflow journal entries for one agent routine run in
ascending sequence order. Script-backed, preset-backed, and legacy runs may
have no journal; those runs return journal: null and an empty data array
with HTTP 200.
Pagination is forward-only. Pass after_cursor from the previous response
to retrieve the next page.
Forward-paginated routine run journal entries.