@squidcloud/client 1.0.379 → 1.0.381

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.
@@ -569,12 +569,12 @@ export interface AnthropicChatOptions extends BaseAiChatOptions {
569
569
  * the type is inferred from the provided overrideModel (or falls back to BaseAiAgentChatOptions).
570
570
  * @category AI
571
571
  */
572
- export type AiChatOptions<T extends AiChatModelName | undefined = undefined> = T extends undefined ? BaseAiChatOptions | GeminiChatOptions | OpenAiReasoningChatOptions | OpenAiChatOptions | AnthropicChatOptions : T extends GeminiChatModelName ? GeminiChatOptions : T extends OpenAiReasoningChatModelName ? OpenAiReasoningChatOptions : T extends OpenAiChatModelName ? OpenAiChatOptions : T extends AnthropicChatModelName ? AnthropicChatOptions : T extends SquidAiModelName ? BaseAiChatOptions : never;
572
+ export type AiChatOptions<T extends AiChatModelName | undefined = undefined> = T extends undefined ? BaseAiChatOptions | GeminiChatOptions | OpenAiReasoningChatOptions | OpenAiChatOptions | AnthropicChatOptions : T extends GeminiChatModelName ? GeminiChatOptions : T extends OpenAiReasoningChatModelName ? OpenAiReasoningChatOptions : T extends OpenAiChatModelName ? OpenAiChatOptions : T extends AnthropicChatModelName ? AnthropicChatOptions : T extends GrokChatModelName ? GrokChatOptions : T extends SquidAiModelName ? BaseAiChatOptions : never;
573
573
  /**
574
574
  * @category AI
575
575
  */
576
576
  export type AllAiAgentChatOptions = {
577
- [K in keyof BaseAiChatOptions | keyof GeminiChatOptions | keyof OpenAiReasoningChatOptions | keyof OpenAiChatOptions | keyof AnthropicChatOptions]?: (K extends keyof BaseAiChatOptions ? BaseAiChatOptions[K] : never) | (K extends keyof GeminiChatOptions ? GeminiChatOptions[K] : never) | (K extends keyof OpenAiReasoningChatOptions ? OpenAiReasoningChatOptions[K] : never) | (K extends keyof OpenAiChatOptions ? OpenAiChatOptions[K] : never) | (K extends keyof AnthropicChatOptions ? AnthropicChatOptions[K] : never);
577
+ [K in keyof BaseAiChatOptions | keyof GeminiChatOptions | keyof GrokChatOptions | keyof OpenAiReasoningChatOptions | keyof OpenAiChatOptions | keyof AnthropicChatOptions]?: (K extends keyof BaseAiChatOptions ? BaseAiChatOptions[K] : never) | (K extends keyof GeminiChatOptions ? GeminiChatOptions[K] : never) | (K extends keyof GrokChatOptions ? GrokChatOptions[K] : never) | (K extends keyof OpenAiReasoningChatOptions ? OpenAiReasoningChatOptions[K] : never) | (K extends keyof OpenAiChatOptions ? OpenAiChatOptions[K] : never) | (K extends keyof AnthropicChatOptions ? AnthropicChatOptions[K] : never);
578
578
  };
579
579
  /**
580
580
  * A definition of an AI agent with its properties and default chat options.
@@ -861,4 +861,24 @@ export interface ApplicationAiSettings {
861
861
  /** Maps AI provider name to API key secret name that must be used for any request made by the application. */
862
862
  apiKeys: Partial<Record<AiProviderType, SecretKey>>;
863
863
  }
864
+ /**
865
+ * Options for user-provided LLM models.
866
+ * @category AI
867
+ */
868
+ export interface UserAiChatOptions extends BaseAiChatOptions {
869
+ /** LLM Model to use for the chat query. */
870
+ model: UserAiChatModelName;
871
+ }
872
+ /**
873
+ * Response structure for asking a user LLM a question.
874
+ * @category AI
875
+ */
876
+ export interface UserAiAskResponse {
877
+ /** The response from the AI agent. */
878
+ response?: string;
879
+ /** The number of input tokens used in the request. */
880
+ inputTokens?: number;
881
+ /** The number of output tokens generated by the AI agent. */
882
+ outputTokens?: number;
883
+ }
864
884
  export {};
@@ -2,4 +2,4 @@
2
2
  * The current version of the SquidCloud client package.
3
3
  * @category Platform
4
4
  */
5
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.379";
5
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.381";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.379",
3
+ "version": "1.0.381",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",