@amigo-ai/sdk 0.59.0 → 0.61.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.
@@ -2339,7 +2339,7 @@ export interface components {
2339
2339
  /** Boundary Constraints */
2340
2340
  boundary_constraints: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
2341
2341
  /** Exit Conditions */
2342
- exit_conditions: components["schemas"]["organization__create_service_hierarchical_state_machine_version__Request__ActionState__ExitCondition"][];
2342
+ exit_conditions: components["schemas"]["organization__create_service_hierarchical_state_machine_version__Request__DecisionState__ExitCondition"][];
2343
2343
  /** Action Tool Call Specs */
2344
2344
  action_tool_call_specs: components["schemas"]["ToolCallSpec-Input"][];
2345
2345
  /** Exit Condition Tool Call Specs */
@@ -2784,7 +2784,7 @@ export interface components {
2784
2784
  type: "decision";
2785
2785
  name: components["schemas"]["StateOrRefName"];
2786
2786
  /** Exit Conditions */
2787
- exit_conditions: components["schemas"]["organization__create_service_hierarchical_state_machine_version__Request__ActionState__ExitCondition"][];
2787
+ exit_conditions: components["schemas"]["organization__create_service_hierarchical_state_machine_version__Request__DecisionState__ExitCondition"][];
2788
2788
  /** Decision Guidelines */
2789
2789
  decision_guidelines: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
2790
2790
  objective: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
@@ -5444,7 +5444,7 @@ export interface components {
5444
5444
  */
5445
5445
  tool_id: string;
5446
5446
  /** @description The version of the tool. */
5447
- version: components["schemas"]["amigo_lib__mongo__collections__tool_version__ToolVersion__Version"];
5447
+ version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
5448
5448
  /**
5449
5449
  * Required Envvars
5450
5450
  * @description The environment variables that are required to run the tool.
@@ -6164,6 +6164,15 @@ export interface components {
6164
6164
  /** User Id */
6165
6165
  user_id: string;
6166
6166
  };
6167
+ /** Version */
6168
+ amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version: {
6169
+ /** Major */
6170
+ major: number;
6171
+ /** Minor */
6172
+ minor: number;
6173
+ /** Patch */
6174
+ patch: number;
6175
+ };
6167
6176
  /** UserInfo */
6168
6177
  amigo_lib__mongo__collections__tool_version__ToolVersion__UserInfo: {
6169
6178
  /**
@@ -6177,15 +6186,6 @@ export interface components {
6177
6186
  */
6178
6187
  user_org_id: string;
6179
6188
  };
6180
- /** Version */
6181
- amigo_lib__mongo__collections__tool_version__ToolVersion__Version: {
6182
- /** Major */
6183
- major: number;
6184
- /** Minor */
6185
- minor: number;
6186
- /** Patch */
6187
- patch: number;
6188
- };
6189
6189
  /**
6190
6190
  * Preferences
6191
6191
  * @description Preferences that the user can set to customize their experience.
@@ -7095,7 +7095,7 @@ export interface components {
7095
7095
  global_boundary_constraints: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"][];
7096
7096
  };
7097
7097
  /** ExitCondition */
7098
- organization__create_service_hierarchical_state_machine_version__Request__ActionState__ExitCondition: {
7098
+ organization__create_service_hierarchical_state_machine_version__Request__DecisionState__ExitCondition: {
7099
7099
  description: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"];
7100
7100
  /** Next State */
7101
7101
  next_state: components["schemas"]["StateOrRefName"] | [
@@ -7556,24 +7556,13 @@ export interface components {
7556
7556
  [key: string]: components["schemas"]["StrippedNonemptyString___w__s_____"] | null;
7557
7557
  };
7558
7558
  };
7559
- /** LLMConfig */
7560
- service__create_service__Request__VersionSet__LLMConfig: {
7561
- llm_name: components["schemas"]["LLMType"];
7562
- /**
7563
- * Top P
7564
- * @description The preferred `top_p` value.
7565
- */
7566
- top_p: number;
7567
- /**
7568
- * Temperature
7569
- * @description The preferred temperature value.
7570
- */
7571
- temperature: number;
7572
- /**
7573
- * Top K
7574
- * @description The preferred `top_k` value. Note that not all LLMs support this.
7575
- */
7576
- top_k: number;
7559
+ /** LLMLoadBalancingSetConfig */
7560
+ service__create_service__Request__VersionSet__LLMLoadBalancingSetConfig: {
7561
+ llm_load_balancing_set_name: components["schemas"]["LLMLoadBalancingSetType"];
7562
+ /** Configs */
7563
+ configs: {
7564
+ [key: string]: components["schemas"]["PerLLMConfig"];
7565
+ };
7577
7566
  };
7578
7567
  /** Response */
7579
7568
  service__create_service__Response: {
@@ -7666,16 +7655,27 @@ export interface components {
7666
7655
  service_hierarchical_state_machine_version_number: number | null;
7667
7656
  /** Llm Model Preferences */
7668
7657
  llm_model_preferences: {
7669
- [key: string]: components["schemas"]["service__create_service__Request__VersionSet__LLMConfig"] | components["schemas"]["service__upsert_service_version_set__Request__VersionSet__LLMLoadBalancingSetConfig"];
7658
+ [key: string]: components["schemas"]["service__upsert_service_version_set__Request__VersionSet__LLMConfig"] | components["schemas"]["service__create_service__Request__VersionSet__LLMLoadBalancingSetConfig"];
7670
7659
  };
7671
7660
  };
7672
- /** LLMLoadBalancingSetConfig */
7673
- service__upsert_service_version_set__Request__VersionSet__LLMLoadBalancingSetConfig: {
7674
- llm_load_balancing_set_name: components["schemas"]["LLMLoadBalancingSetType"];
7675
- /** Configs */
7676
- configs: {
7677
- [key: string]: components["schemas"]["PerLLMConfig"];
7678
- };
7661
+ /** LLMConfig */
7662
+ service__upsert_service_version_set__Request__VersionSet__LLMConfig: {
7663
+ llm_name: components["schemas"]["LLMType"];
7664
+ /**
7665
+ * Top P
7666
+ * @description The preferred `top_p` value.
7667
+ */
7668
+ top_p: number;
7669
+ /**
7670
+ * Temperature
7671
+ * @description The preferred temperature value.
7672
+ */
7673
+ temperature: number;
7674
+ /**
7675
+ * Top K
7676
+ * @description The preferred `top_k` value. Note that not all LLMs support this.
7677
+ */
7678
+ top_k: number;
7679
7679
  };
7680
7680
  /** Request */
7681
7681
  simulation__create_simulation_persona__Request: {
@@ -7880,7 +7880,7 @@ export interface components {
7880
7880
  * Unit Test Runs
7881
7881
  * @description The unit test runs that are part of this set.
7882
7882
  */
7883
- unit_test_runs: components["schemas"]["simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor"][];
7883
+ unit_test_runs: components["schemas"]["simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor"][];
7884
7884
  /**
7885
7885
  * Tags
7886
7886
  * @description The tags of the simulation unit test set.
@@ -7889,16 +7889,6 @@ export interface components {
7889
7889
  [key: string]: string | null;
7890
7890
  };
7891
7891
  };
7892
- /** UnitTestRunDescriptor */
7893
- simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor: {
7894
- /** Unit Test Id */
7895
- unit_test_id: string;
7896
- /**
7897
- * Run Count
7898
- * @description The number of times to run the unit test.
7899
- */
7900
- run_count: number;
7901
- };
7902
7892
  /** Response */
7903
7893
  simulation__create_simulation_unit_test_set__Response: {
7904
7894
  /**
@@ -8006,7 +7996,7 @@ export interface components {
8006
7996
  * Simulation Scenarios
8007
7997
  * @description The list of simulation scenarios.
8008
7998
  */
8009
- simulation_scenarios: components["schemas"]["simulation__search_simulation_scenarios__Response__SimulationScenarioInstance"][];
7999
+ simulation_scenarios: components["schemas"]["simulation__get_simulation_scenarios__Response__SimulationScenarioInstance"][];
8010
8000
  /**
8011
8001
  * Has More
8012
8002
  * @description Whether there are more simulation scenarios to fetch.
@@ -8036,6 +8026,47 @@ export interface components {
8036
8026
  */
8037
8027
  tags: string[];
8038
8028
  };
8029
+ /** SimulationScenarioInstance */
8030
+ simulation__get_simulation_scenarios__Response__SimulationScenarioInstance: {
8031
+ /**
8032
+ * Id
8033
+ * @description The ID of the simulation scenario.
8034
+ */
8035
+ id: string;
8036
+ /**
8037
+ * Name
8038
+ * @description The name of the simulation scenario.
8039
+ */
8040
+ name: string;
8041
+ /**
8042
+ * Tags
8043
+ * @description The tags of the simulation scenario.
8044
+ */
8045
+ tags: {
8046
+ [key: string]: string | null;
8047
+ };
8048
+ /**
8049
+ * Is Deleted
8050
+ * @description Whether the simulation scenario is deleted.
8051
+ */
8052
+ is_deleted: boolean;
8053
+ /**
8054
+ * Created At
8055
+ * Format: date-time
8056
+ * @description The timestamp when the simulation scenario was created.
8057
+ */
8058
+ created_at: string;
8059
+ /** @description The user who created the simulation scenario. */
8060
+ creator: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8061
+ /**
8062
+ * Updated At
8063
+ * Format: date-time
8064
+ * @description The timestamp when the simulation scenario was last updated.
8065
+ */
8066
+ updated_at: string;
8067
+ /** @description The user who last updated the simulation scenario. */
8068
+ updated_by: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8069
+ };
8039
8070
  /** Response */
8040
8071
  simulation__get_simulation_unit_test_set_run_artifacts__Response: {
8041
8072
  /**
@@ -8248,48 +8279,7 @@ export interface components {
8248
8279
  * Simulation Scenarios
8249
8280
  * @description The list of simulation scenarios.
8250
8281
  */
8251
- simulation_scenarios: components["schemas"]["simulation__search_simulation_scenarios__Response__SimulationScenarioInstance"][];
8252
- };
8253
- /** SimulationScenarioInstance */
8254
- simulation__search_simulation_scenarios__Response__SimulationScenarioInstance: {
8255
- /**
8256
- * Id
8257
- * @description The ID of the simulation scenario.
8258
- */
8259
- id: string;
8260
- /**
8261
- * Name
8262
- * @description The name of the simulation scenario.
8263
- */
8264
- name: string;
8265
- /**
8266
- * Tags
8267
- * @description The tags of the simulation scenario.
8268
- */
8269
- tags: {
8270
- [key: string]: string | null;
8271
- };
8272
- /**
8273
- * Is Deleted
8274
- * @description Whether the simulation scenario is deleted.
8275
- */
8276
- is_deleted: boolean;
8277
- /**
8278
- * Created At
8279
- * Format: date-time
8280
- * @description The timestamp when the simulation scenario was created.
8281
- */
8282
- created_at: string;
8283
- /** @description The user who created the simulation scenario. */
8284
- creator: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8285
- /**
8286
- * Updated At
8287
- * Format: date-time
8288
- * @description The timestamp when the simulation scenario was last updated.
8289
- */
8290
- updated_at: string;
8291
- /** @description The user who last updated the simulation scenario. */
8292
- updated_by: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8282
+ simulation_scenarios: components["schemas"]["simulation__get_simulation_scenarios__Response__SimulationScenarioInstance"][];
8293
8283
  };
8294
8284
  /** Response */
8295
8285
  simulation__search_simulation_unit_test_set__Response: {
@@ -8395,7 +8385,7 @@ export interface components {
8395
8385
  * Unit Test Runs
8396
8386
  * @description The unit test runs that are part of this set.
8397
8387
  */
8398
- unit_test_runs?: components["schemas"]["simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor"][] | null;
8388
+ unit_test_runs?: components["schemas"]["simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor"][] | null;
8399
8389
  /**
8400
8390
  * Tags
8401
8391
  * @description The tags of the simulation unit test set.
@@ -8404,6 +8394,16 @@ export interface components {
8404
8394
  [key: string]: string | null;
8405
8395
  } | null;
8406
8396
  };
8397
+ /** UnitTestRunDescriptor */
8398
+ simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor: {
8399
+ /** Unit Test Id */
8400
+ unit_test_id: string;
8401
+ /**
8402
+ * Run Count
8403
+ * @description The number of times to run the unit test.
8404
+ */
8405
+ run_count: number;
8406
+ };
8407
8407
  /** Request */
8408
8408
  tool__create_tool__Request: {
8409
8409
  /** @description The name of the tool. It must be unique among all non-deprecated tools in the organization. */
@@ -8432,7 +8432,7 @@ export interface components {
8432
8432
  * Tool Invocations
8433
8433
  * @description The list of tool invocations.
8434
8434
  */
8435
- tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8435
+ tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8436
8436
  /**
8437
8437
  * Has More
8438
8438
  * @description Whether there are more tool invocations to retrieve.
@@ -8444,47 +8444,6 @@ export interface components {
8444
8444
  */
8445
8445
  continuation_token: unknown | null;
8446
8446
  };
8447
- /** ToolInvocationInstance */
8448
- tool__get_tool_invocations__Response__ToolInvocationInstance: {
8449
- /**
8450
- * Id
8451
- * @description The ID of the tool invocation.
8452
- */
8453
- id: string;
8454
- /**
8455
- * Org Id
8456
- * @description The ID of the organization.
8457
- */
8458
- org_id: string;
8459
- /**
8460
- * Created At
8461
- * Format: date-time
8462
- */
8463
- created_at?: string;
8464
- /**
8465
- * Updated At
8466
- * Format: date-time
8467
- */
8468
- updated_at?: string;
8469
- /** @description The status of the tool invocation. */
8470
- invocation_status: components["schemas"]["InvocationStatus"];
8471
- /** @description The source of the tool invocation. */
8472
- invocation_source: components["schemas"]["InvocationSource"];
8473
- /** Logs */
8474
- logs: string[];
8475
- /**
8476
- * Duration Ms
8477
- * @description The duration of the tool invocation in milliseconds.
8478
- */
8479
- duration_ms: number;
8480
- /**
8481
- * Tool Id
8482
- * @description The ID of the tool that was invoked.
8483
- */
8484
- tool_id: string;
8485
- /** @description The version of the tool that was invoked. */
8486
- tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_version__ToolVersion__Version"];
8487
- };
8488
8447
  /** Response */
8489
8448
  tool__get_tool_versions__Response: {
8490
8449
  /**
@@ -8625,7 +8584,48 @@ export interface components {
8625
8584
  * Tool Invocations
8626
8585
  * @description The list of tool invocations.
8627
8586
  */
8628
- tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8587
+ tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8588
+ };
8589
+ /** ToolInvocationInstance */
8590
+ tool__search_tool_invocations__Response__ToolInvocationInstance: {
8591
+ /**
8592
+ * Id
8593
+ * @description The ID of the tool invocation.
8594
+ */
8595
+ id: string;
8596
+ /**
8597
+ * Org Id
8598
+ * @description The ID of the organization.
8599
+ */
8600
+ org_id: string;
8601
+ /**
8602
+ * Created At
8603
+ * Format: date-time
8604
+ */
8605
+ created_at?: string;
8606
+ /**
8607
+ * Updated At
8608
+ * Format: date-time
8609
+ */
8610
+ updated_at?: string;
8611
+ /** @description The status of the tool invocation. */
8612
+ invocation_status: components["schemas"]["InvocationStatus"];
8613
+ /** @description The source of the tool invocation. */
8614
+ invocation_source: components["schemas"]["InvocationSource"];
8615
+ /** Logs */
8616
+ logs: string[];
8617
+ /**
8618
+ * Duration Ms
8619
+ * @description The duration of the tool invocation in milliseconds.
8620
+ */
8621
+ duration_ms: number;
8622
+ /**
8623
+ * Tool Id
8624
+ * @description The ID of the tool that was invoked.
8625
+ */
8626
+ tool_id: string;
8627
+ /** @description The version of the tool that was invoked. */
8628
+ tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
8629
8629
  };
8630
8630
  /** Request */
8631
8631
  tool__test_tool__Request: {
@@ -8781,7 +8781,7 @@ export interface components {
8781
8781
  * Users
8782
8782
  * @description Users in this organization.
8783
8783
  */
8784
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8784
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
8785
8785
  /**
8786
8786
  * Has More
8787
8787
  * @description Whether there are more users to retrieve.
@@ -8793,8 +8793,34 @@ export interface components {
8793
8793
  */
8794
8794
  continuation_token: number | null;
8795
8795
  };
8796
+ /** UserStats */
8797
+ user__get_users__Response__UserInstance__UserStats: {
8798
+ /**
8799
+ * Num Conversations
8800
+ * @description The number of conversations the user has created.
8801
+ */
8802
+ num_conversations: number;
8803
+ /**
8804
+ * Num Messages
8805
+ * @description The number of messages the user has sent and received.
8806
+ */
8807
+ num_messages: number;
8808
+ /**
8809
+ * Last Message Time
8810
+ * @description The time of the last message the user sent or received. If `None`, the user hasn't started any conversations.
8811
+ */
8812
+ last_message_time: string | null;
8813
+ };
8814
+ /** Response */
8815
+ user__search_users__Response: {
8816
+ /**
8817
+ * Users
8818
+ * @description Users in this organization.
8819
+ */
8820
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
8821
+ };
8796
8822
  /** UserInstance */
8797
- user__get_users__Response__UserInstance: {
8823
+ user__search_users__Response__UserInstance: {
8798
8824
  /**
8799
8825
  * Org Id
8800
8826
  * @description The ID of the organization that this user belongs to.
@@ -8821,7 +8847,7 @@ export interface components {
8821
8847
  */
8822
8848
  email: string;
8823
8849
  /** @description Statistics about the user's usage of the Amigo platform. */
8824
- user_stats: components["schemas"]["user__search_users__Response__UserInstance__UserStats"];
8850
+ user_stats: components["schemas"]["user__get_users__Response__UserInstance__UserStats"];
8825
8851
  /**
8826
8852
  * Role
8827
8853
  * @description The ID of the role of the user.
@@ -8830,32 +8856,6 @@ export interface components {
8830
8856
  /** @description The preferences of the user. */
8831
8857
  preferences: components["schemas"]["amigo_lib__mongo__collections__user__User__Preferences"];
8832
8858
  };
8833
- /** Response */
8834
- user__search_users__Response: {
8835
- /**
8836
- * Users
8837
- * @description Users in this organization.
8838
- */
8839
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8840
- };
8841
- /** UserStats */
8842
- user__search_users__Response__UserInstance__UserStats: {
8843
- /**
8844
- * Num Conversations
8845
- * @description The number of conversations the user has created.
8846
- */
8847
- num_conversations: number;
8848
- /**
8849
- * Num Messages
8850
- * @description The number of messages the user has sent and received.
8851
- */
8852
- num_messages: number;
8853
- /**
8854
- * Last Message Time
8855
- * @description The time of the last message the user sent or received. If `None`, the user hasn't started any conversations.
8856
- */
8857
- last_message_time: string | null;
8858
- };
8859
8859
  /** SigninWithAPIKeyResponse */
8860
8860
  user__sign_in_with_api_key__Response: {
8861
8861
  /**
@@ -12482,6 +12482,8 @@ export interface operations {
12482
12482
  query: {
12483
12483
  /** @description The search query. Any users whose name or email contains the query are returned. */
12484
12484
  query: string;
12485
+ /** @description The IDs of the users. */
12486
+ user_id?: string[];
12485
12487
  };
12486
12488
  header?: {
12487
12489
  /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
@@ -5,7 +5,7 @@ export declare class UserResource {
5
5
  private orgId;
6
6
  constructor(c: AmigoFetch, orgId: string);
7
7
  getUsers(queryParams?: operations['get-users']['parameters']['query'], headers?: operations['get-users']['parameters']['header']): Promise<{
8
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
9
9
  has_more: boolean;
10
10
  continuation_token: number | null;
11
11
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.59.0",
3
+ "version": "0.61.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"