@amigo-ai/platform-sdk 0.83.0 → 0.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -713,6 +713,46 @@ export interface paths {
713
713
  patch?: never;
714
714
  trace?: never;
715
715
  };
716
+ "/v1/{workspace_id}/agent-runs": {
717
+ parameters: {
718
+ query?: never;
719
+ header?: never;
720
+ path?: never;
721
+ cookie?: never;
722
+ };
723
+ get?: never;
724
+ put?: never;
725
+ /**
726
+ * Dispatch a framework agent run
727
+ * @description Proxies to agent-runner, which executes the chosen framework UNMODIFIED (natural setup) against the platform MCP world-tools edge under the caller's own bearer. Non-blocking — poll GET /agent-runs/{run_id} for the result.
728
+ */
729
+ post: operations["create_agent_run_v1__workspace_id__agent_runs_post"];
730
+ delete?: never;
731
+ options?: never;
732
+ head?: never;
733
+ patch?: never;
734
+ trace?: never;
735
+ };
736
+ "/v1/{workspace_id}/agent-runs/{run_id}": {
737
+ parameters: {
738
+ query?: never;
739
+ header?: never;
740
+ path?: never;
741
+ cookie?: never;
742
+ };
743
+ /**
744
+ * Get a framework agent run
745
+ * @description Run status, final text, token usage, and the adapter-normalized trajectory of the framework's native output.
746
+ */
747
+ get: operations["get_agent_run_v1__workspace_id__agent_runs__run_id__get"];
748
+ put?: never;
749
+ post?: never;
750
+ delete?: never;
751
+ options?: never;
752
+ head?: never;
753
+ patch?: never;
754
+ trace?: never;
755
+ };
716
756
  "/v1/{workspace_id}/agents": {
717
757
  parameters: {
718
758
  query?: never;
@@ -8119,6 +8159,50 @@ export interface components {
8119
8159
  */
8120
8160
  workspace_id: string;
8121
8161
  };
8162
+ /** AgentRunDetail */
8163
+ AgentRunDetail: {
8164
+ /**
8165
+ * Duration Ms
8166
+ * @default 0
8167
+ */
8168
+ duration_ms?: number;
8169
+ /**
8170
+ * Error
8171
+ * @description Failure detail for failed/timed_out runs. Empty otherwise.
8172
+ * @default
8173
+ */
8174
+ error?: string;
8175
+ /**
8176
+ * Framework
8177
+ * @enum {string}
8178
+ */
8179
+ framework: "claude-agent-sdk" | "openai-agents";
8180
+ /**
8181
+ * Run Id
8182
+ * Format: uuid
8183
+ */
8184
+ run_id: string;
8185
+ /**
8186
+ * Status
8187
+ * @enum {string}
8188
+ */
8189
+ status: "running" | "succeeded" | "failed" | "timed_out";
8190
+ /**
8191
+ * Text
8192
+ * @description Final agent text. Empty while the run is still running or on failure.
8193
+ * @default
8194
+ */
8195
+ text?: string;
8196
+ /**
8197
+ * Trajectory
8198
+ * @description AgentEffect-shaped step dicts (kind, seq, content, tool_name, ...) — the adapter's normalize() over the framework's NATIVE output. Untyped passthrough in v1: the AgentEffect projection is a server-private shape still converging across frameworks; typing it here now would freeze a premature wire contract. A typed discriminated union lands in a follow-up.
8199
+ * @default []
8200
+ */
8201
+ trajectory?: {
8202
+ [key: string]: unknown;
8203
+ }[];
8204
+ usage?: components["schemas"]["Usage"];
8205
+ };
8122
8206
  /** AgentTranscriptDeltaEvent */
8123
8207
  AgentTranscriptDeltaEvent: {
8124
8208
  /** Delta */
@@ -11064,6 +11148,49 @@ export interface components {
11064
11148
  description?: components["schemas"]["DescriptionString"];
11065
11149
  name: components["schemas"]["NameString"];
11066
11150
  };
11151
+ /** CreateAgentRunRequest */
11152
+ CreateAgentRunRequest: {
11153
+ /**
11154
+ * Framework
11155
+ * @description Agent framework the run executes on — runs unmodified in the framework's own design.
11156
+ * @enum {string}
11157
+ */
11158
+ framework: "claude-agent-sdk" | "openai-agents";
11159
+ /**
11160
+ * Message
11161
+ * @description User message the framework agent is invoked with.
11162
+ */
11163
+ message: string;
11164
+ /**
11165
+ * Service Id
11166
+ * Format: uuid
11167
+ */
11168
+ service_id: string;
11169
+ /**
11170
+ * Timeout S
11171
+ * @description Server-side wall-clock budget for the run, in seconds (max 300).
11172
+ * @default 120
11173
+ */
11174
+ timeout_s?: number;
11175
+ /**
11176
+ * @description Named version set on the service whose pinned config the run uses.
11177
+ * @default release
11178
+ */
11179
+ version_set?: components["schemas"]["NameString"];
11180
+ };
11181
+ /** CreateAgentRunResponse */
11182
+ CreateAgentRunResponse: {
11183
+ /**
11184
+ * Run Id
11185
+ * Format: uuid
11186
+ */
11187
+ run_id: string;
11188
+ /**
11189
+ * Status
11190
+ * @constant
11191
+ */
11192
+ status: "running";
11193
+ };
11067
11194
  /** CreateAgentVersionRequest */
11068
11195
  CreateAgentVersionRequest: {
11069
11196
  /** @default */
@@ -25907,6 +26034,19 @@ export interface components {
25907
26034
  UpsertVersionSetRequest: {
25908
26035
  version_set: components["schemas"]["VersionSet-Input"];
25909
26036
  };
26037
+ /** Usage */
26038
+ Usage: {
26039
+ /**
26040
+ * Input Tokens
26041
+ * @default 0
26042
+ */
26043
+ input_tokens?: number;
26044
+ /**
26045
+ * Output Tokens
26046
+ * @default 0
26047
+ */
26048
+ output_tokens?: number;
26049
+ };
25910
26050
  /** UsageBucket */
25911
26051
  UsageBucket: {
25912
26052
  /**
@@ -29437,6 +29577,73 @@ export interface operations {
29437
29577
  };
29438
29578
  };
29439
29579
  };
29580
+ create_agent_run_v1__workspace_id__agent_runs_post: {
29581
+ parameters: {
29582
+ query?: never;
29583
+ header?: never;
29584
+ path: {
29585
+ workspace_id: string;
29586
+ };
29587
+ cookie?: never;
29588
+ };
29589
+ requestBody: {
29590
+ content: {
29591
+ "application/json": components["schemas"]["CreateAgentRunRequest"];
29592
+ };
29593
+ };
29594
+ responses: {
29595
+ /** @description Successful Response */
29596
+ 202: {
29597
+ headers: {
29598
+ [name: string]: unknown;
29599
+ };
29600
+ content: {
29601
+ "application/json": components["schemas"]["CreateAgentRunResponse"];
29602
+ };
29603
+ };
29604
+ /** @description Validation Error */
29605
+ 422: {
29606
+ headers: {
29607
+ [name: string]: unknown;
29608
+ };
29609
+ content: {
29610
+ "application/json": components["schemas"]["HTTPValidationError"];
29611
+ };
29612
+ };
29613
+ };
29614
+ };
29615
+ get_agent_run_v1__workspace_id__agent_runs__run_id__get: {
29616
+ parameters: {
29617
+ query?: never;
29618
+ header?: never;
29619
+ path: {
29620
+ workspace_id: string;
29621
+ run_id: string;
29622
+ };
29623
+ cookie?: never;
29624
+ };
29625
+ requestBody?: never;
29626
+ responses: {
29627
+ /** @description Successful Response */
29628
+ 200: {
29629
+ headers: {
29630
+ [name: string]: unknown;
29631
+ };
29632
+ content: {
29633
+ "application/json": components["schemas"]["AgentRunDetail"];
29634
+ };
29635
+ };
29636
+ /** @description Validation Error */
29637
+ 422: {
29638
+ headers: {
29639
+ [name: string]: unknown;
29640
+ };
29641
+ content: {
29642
+ "application/json": components["schemas"]["HTTPValidationError"];
29643
+ };
29644
+ };
29645
+ };
29646
+ };
29440
29647
  "list-agents": {
29441
29648
  parameters: {
29442
29649
  query?: {