Skip to content
Proud to collaborate with Microsoft for Startups

agents.price-catalog-sync ​

Sync the built-in model pricing catalog to the global AgentPriceConfig table

Synchronise PRICING_CATALOG to global (org=NULL) AgentPriceConfig rows.

For each catalog entry:

  • If an active row exists with identical prices, skip it.
  • If prices differ, retire the existing row (set effective_until = today) and insert a new one.
  • If no active row exists, insert a new one.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
INTERNALschedule.syncInternal — triggered by the pricing sync scheduler

Input Schema ​

No input fields required.

Output Schema ​

FieldTypeRequiredDefaultDescription
records_upsertedintegerNo——
records_skippedintegerNo——
synced_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.price-catalog-sync",
  "initial_data": { }
}