graphlit-client 1.0.20250104001 → 1.0.20250105001
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.
package/dist/client.d.ts
CHANGED
@@ -99,6 +99,7 @@ declare class Graphlit {
|
|
99
99
|
deleteAllSpecifications(): Promise<Types.DeleteAllSpecificationsMutation>;
|
100
100
|
getSpecification(id: string): Promise<Types.GetSpecificationQuery>;
|
101
101
|
querySpecifications(filter?: Types.SpecificationFilter): Promise<Types.QuerySpecificationsQuery>;
|
102
|
+
queryModels(filter?: Types.ModelFilter): Promise<Types.QueryModelsQuery>;
|
102
103
|
createWorkflow(workflow: Types.WorkflowInput): Promise<Types.CreateWorkflowMutation>;
|
103
104
|
updateWorkflow(workflow: Types.WorkflowUpdateInput): Promise<Types.UpdateWorkflowMutation>;
|
104
105
|
deleteWorkflow(id: string): Promise<Types.DeleteWorkflowMutation>;
|
package/dist/client.js
CHANGED
@@ -553,6 +553,11 @@ class Graphlit {
|
|
553
553
|
return this.queryAndCheckError(Documents.QuerySpecifications, { filter: filter });
|
554
554
|
});
|
555
555
|
}
|
556
|
+
queryModels(filter) {
|
557
|
+
return __awaiter(this, void 0, void 0, function* () {
|
558
|
+
return this.queryAndCheckError(Documents.QueryModels, { filter: filter });
|
559
|
+
});
|
560
|
+
}
|
556
561
|
createWorkflow(workflow) {
|
557
562
|
return __awaiter(this, void 0, void 0, function* () {
|
558
563
|
return this.mutateAndCheckError(Documents.CreateWorkflow, { workflow: workflow });
|
@@ -7978,13 +7978,15 @@ exports.PromptSpecifications = (0, graphql_tag_1.default) `
|
|
7978
7978
|
}
|
7979
7979
|
`;
|
7980
7980
|
exports.QueryModels = (0, graphql_tag_1.default) `
|
7981
|
-
query QueryModels {
|
7982
|
-
models {
|
7981
|
+
query QueryModels($filter: ModelFilter) {
|
7982
|
+
models(filter: $filter) {
|
7983
7983
|
results {
|
7984
|
+
uri
|
7984
7985
|
name
|
7985
7986
|
type
|
7986
7987
|
serviceType
|
7987
7988
|
model
|
7989
|
+
modelType
|
7988
7990
|
description
|
7989
7991
|
availableOn
|
7990
7992
|
features {
|
@@ -1059,8 +1059,8 @@ export declare enum CerebrasModels {
|
|
1059
1059
|
Custom = "CUSTOM",
|
1060
1060
|
/** LLaMA 3.1 8b */
|
1061
1061
|
Llama_3_1_8B = "LLAMA_3_1_8B",
|
1062
|
-
/** LLaMA 3.
|
1063
|
-
|
1062
|
+
/** LLaMA 3.3 70b */
|
1063
|
+
Llama_3_3_70B = "LLAMA_3_3_70B"
|
1064
1064
|
}
|
1065
1065
|
/** Represents Cohere model properties. */
|
1066
1066
|
export type CohereModelProperties = {
|
@@ -4039,29 +4039,12 @@ export declare enum GroqModels {
|
|
4039
4039
|
Custom = "CUSTOM",
|
4040
4040
|
/** LLaMA 3.1 8b */
|
4041
4041
|
Llama_3_1_8B = "LLAMA_3_1_8B",
|
4042
|
-
/**
|
4043
|
-
* LLaMA 3.1 70b
|
4044
|
-
* @deprecated Use Llama 3.3 70b instead.
|
4045
|
-
*/
|
4046
|
-
Llama_3_1_70B = "LLAMA_3_1_70B",
|
4047
|
-
/** LLaMA 3.1 405b */
|
4048
|
-
Llama_3_1_405B = "LLAMA_3_1_405B",
|
4049
4042
|
/** LLaMA 3.2 1b Preview */
|
4050
4043
|
Llama_3_2_1BPreview = "LLAMA_3_2_1B_PREVIEW",
|
4051
4044
|
/** LLaMA 3.2 3b Preview */
|
4052
4045
|
Llama_3_2_3BPreview = "LLAMA_3_2_3B_PREVIEW",
|
4053
|
-
/**
|
4054
|
-
* LLaMA 3.2 11b Text Preview
|
4055
|
-
* @deprecated Use Llama 3.2 11b Vision Preview instead.
|
4056
|
-
*/
|
4057
|
-
Llama_3_2_11BTextPreview = "LLAMA_3_2_11B_TEXT_PREVIEW",
|
4058
4046
|
/** LLaMA 3.2 11b Vision Preview */
|
4059
4047
|
Llama_3_2_11BVisionPreview = "LLAMA_3_2_11B_VISION_PREVIEW",
|
4060
|
-
/**
|
4061
|
-
* LLaMA 3.2 90b Text Preview
|
4062
|
-
* @deprecated Use Llama 3.2 90b Vision Preview instead.
|
4063
|
-
*/
|
4064
|
-
Llama_3_2_90BTextPreview = "LLAMA_3_2_90B_TEXT_PREVIEW",
|
4065
4048
|
/** LLaMA 3.2 90b Vision Preview */
|
4066
4049
|
Llama_3_2_90BVisionPreview = "LLAMA_3_2_90B_VISION_PREVIEW",
|
4067
4050
|
/** LLaMA 3.3 70b */
|
@@ -4070,11 +4053,6 @@ export declare enum GroqModels {
|
|
4070
4053
|
Llama_3_8B = "LLAMA_3_8B",
|
4071
4054
|
/** LLaMA 3 70b */
|
4072
4055
|
Llama_3_70B = "LLAMA_3_70B",
|
4073
|
-
/**
|
4074
|
-
* LLaVA 1.5 7B Preview
|
4075
|
-
* @deprecated Use Llama 3.2 11b Vision Preview instead.
|
4076
|
-
*/
|
4077
|
-
Llava_1_5_7BPreview = "LLAVA_1_5_7B_PREVIEW",
|
4078
4056
|
/** Mixtral 8x7b Instruct */
|
4079
4057
|
Mixtral_8X7BInstruct = "MIXTRAL_8X7B_INSTRUCT"
|
4080
4058
|
}
|
@@ -6790,14 +6768,18 @@ export type ModelCard = {
|
|
6790
6768
|
features?: Maybe<ModelFeatures>;
|
6791
6769
|
/** The model metadata, including pricing information per million tokens. */
|
6792
6770
|
metadata?: Maybe<ModelMetadata>;
|
6793
|
-
/** The model enum to use with the specification. */
|
6771
|
+
/** The model enum to use with the specification, i.e. GPT4O_128K. */
|
6794
6772
|
model?: Maybe<Scalars['String']['output']>;
|
6773
|
+
/** The model enum type to use with the specification, i.e. OpenAIModels. */
|
6774
|
+
modelType?: Maybe<Scalars['String']['output']>;
|
6795
6775
|
/** The model name. */
|
6796
6776
|
name: Scalars['String']['output'];
|
6797
6777
|
/** The model service type. */
|
6798
6778
|
serviceType?: Maybe<ModelServiceTypes>;
|
6799
6779
|
/** The type of model, i.e. completion, text embedding, reranking. */
|
6800
6780
|
type?: Maybe<ModelTypes>;
|
6781
|
+
/** The model card URI. */
|
6782
|
+
uri?: Maybe<Scalars['URL']['output']>;
|
6801
6783
|
};
|
6802
6784
|
/** Represents a list of model card results. */
|
6803
6785
|
export type ModelCardResults = {
|
@@ -6826,6 +6808,13 @@ export type ModelFeatures = {
|
|
6826
6808
|
/** Potential use cases for the model. */
|
6827
6809
|
useCases?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
6828
6810
|
};
|
6811
|
+
/** Represents a filter for LLM models. */
|
6812
|
+
export type ModelFilter = {
|
6813
|
+
/** Filter by LLM service types. */
|
6814
|
+
serviceTypes?: InputMaybe<Array<InputMaybe<ModelServiceTypes>>>;
|
6815
|
+
/** Filter by LLM model types. */
|
6816
|
+
types?: InputMaybe<Array<InputMaybe<ModelTypes>>>;
|
6817
|
+
};
|
6829
6818
|
/** Represents an LLM image entity extraction connector. */
|
6830
6819
|
export type ModelImageExtractionProperties = {
|
6831
6820
|
__typename?: 'ModelImageExtractionProperties';
|
@@ -10451,6 +10440,9 @@ export type QueryMicrosoftTeamsChannelsArgs = {
|
|
10451
10440
|
export type QueryMicrosoftTeamsTeamsArgs = {
|
10452
10441
|
properties: MicrosoftTeamsTeamsInput;
|
10453
10442
|
};
|
10443
|
+
export type QueryModelsArgs = {
|
10444
|
+
filter?: InputMaybe<ModelFilter>;
|
10445
|
+
};
|
10454
10446
|
export type QueryObservationArgs = {
|
10455
10447
|
correlationId?: InputMaybe<Scalars['String']['input']>;
|
10456
10448
|
id: Scalars['ID']['input'];
|
@@ -12150,8 +12142,12 @@ export declare enum VoyageModels {
|
|
12150
12142
|
Voyage = "VOYAGE",
|
12151
12143
|
/** Voyage 3.0 */
|
12152
12144
|
Voyage_3_0 = "VOYAGE_3_0",
|
12145
|
+
/** Voyage 3.0 Large */
|
12146
|
+
Voyage_3_0Large = "VOYAGE_3_0_LARGE",
|
12153
12147
|
/** Voyage Code 2.0 */
|
12154
12148
|
VoyageCode_2_0 = "VOYAGE_CODE_2_0",
|
12149
|
+
/** Voyage Code 3.0 */
|
12150
|
+
VoyageCode_3_0 = "VOYAGE_CODE_3_0",
|
12155
12151
|
/** Voyage Finance 2.0 */
|
12156
12152
|
VoyageFinance_2_0 = "VOYAGE_FINANCE_2_0",
|
12157
12153
|
/** Voyage Law 2.0 */
|
@@ -21751,7 +21747,7 @@ export type PromptSpecificationsMutation = {
|
|
21751
21747
|
} | null> | null;
|
21752
21748
|
};
|
21753
21749
|
export type QueryModelsQueryVariables = Exact<{
|
21754
|
-
|
21750
|
+
filter?: InputMaybe<ModelFilter>;
|
21755
21751
|
}>;
|
21756
21752
|
export type QueryModelsQuery = {
|
21757
21753
|
__typename?: 'Query';
|
@@ -21759,10 +21755,12 @@ export type QueryModelsQuery = {
|
|
21759
21755
|
__typename?: 'ModelCardResults';
|
21760
21756
|
results?: Array<{
|
21761
21757
|
__typename?: 'ModelCard';
|
21758
|
+
uri?: any | null;
|
21762
21759
|
name: string;
|
21763
21760
|
type?: ModelTypes | null;
|
21764
21761
|
serviceType?: ModelServiceTypes | null;
|
21765
21762
|
model?: string | null;
|
21763
|
+
modelType?: string | null;
|
21766
21764
|
description?: string | null;
|
21767
21765
|
availableOn?: Array<string | null> | null;
|
21768
21766
|
features?: {
|
@@ -146,8 +146,8 @@ var CerebrasModels;
|
|
146
146
|
CerebrasModels["Custom"] = "CUSTOM";
|
147
147
|
/** LLaMA 3.1 8b */
|
148
148
|
CerebrasModels["Llama_3_1_8B"] = "LLAMA_3_1_8B";
|
149
|
-
/** LLaMA 3.
|
150
|
-
CerebrasModels["
|
149
|
+
/** LLaMA 3.3 70b */
|
150
|
+
CerebrasModels["Llama_3_3_70B"] = "LLAMA_3_3_70B";
|
151
151
|
})(CerebrasModels || (exports.CerebrasModels = CerebrasModels = {}));
|
152
152
|
/** Cohere model type */
|
153
153
|
var CohereModels;
|
@@ -799,29 +799,12 @@ var GroqModels;
|
|
799
799
|
GroqModels["Custom"] = "CUSTOM";
|
800
800
|
/** LLaMA 3.1 8b */
|
801
801
|
GroqModels["Llama_3_1_8B"] = "LLAMA_3_1_8B";
|
802
|
-
/**
|
803
|
-
* LLaMA 3.1 70b
|
804
|
-
* @deprecated Use Llama 3.3 70b instead.
|
805
|
-
*/
|
806
|
-
GroqModels["Llama_3_1_70B"] = "LLAMA_3_1_70B";
|
807
|
-
/** LLaMA 3.1 405b */
|
808
|
-
GroqModels["Llama_3_1_405B"] = "LLAMA_3_1_405B";
|
809
802
|
/** LLaMA 3.2 1b Preview */
|
810
803
|
GroqModels["Llama_3_2_1BPreview"] = "LLAMA_3_2_1B_PREVIEW";
|
811
804
|
/** LLaMA 3.2 3b Preview */
|
812
805
|
GroqModels["Llama_3_2_3BPreview"] = "LLAMA_3_2_3B_PREVIEW";
|
813
|
-
/**
|
814
|
-
* LLaMA 3.2 11b Text Preview
|
815
|
-
* @deprecated Use Llama 3.2 11b Vision Preview instead.
|
816
|
-
*/
|
817
|
-
GroqModels["Llama_3_2_11BTextPreview"] = "LLAMA_3_2_11B_TEXT_PREVIEW";
|
818
806
|
/** LLaMA 3.2 11b Vision Preview */
|
819
807
|
GroqModels["Llama_3_2_11BVisionPreview"] = "LLAMA_3_2_11B_VISION_PREVIEW";
|
820
|
-
/**
|
821
|
-
* LLaMA 3.2 90b Text Preview
|
822
|
-
* @deprecated Use Llama 3.2 90b Vision Preview instead.
|
823
|
-
*/
|
824
|
-
GroqModels["Llama_3_2_90BTextPreview"] = "LLAMA_3_2_90B_TEXT_PREVIEW";
|
825
808
|
/** LLaMA 3.2 90b Vision Preview */
|
826
809
|
GroqModels["Llama_3_2_90BVisionPreview"] = "LLAMA_3_2_90B_VISION_PREVIEW";
|
827
810
|
/** LLaMA 3.3 70b */
|
@@ -830,11 +813,6 @@ var GroqModels;
|
|
830
813
|
GroqModels["Llama_3_8B"] = "LLAMA_3_8B";
|
831
814
|
/** LLaMA 3 70b */
|
832
815
|
GroqModels["Llama_3_70B"] = "LLAMA_3_70B";
|
833
|
-
/**
|
834
|
-
* LLaVA 1.5 7B Preview
|
835
|
-
* @deprecated Use Llama 3.2 11b Vision Preview instead.
|
836
|
-
*/
|
837
|
-
GroqModels["Llava_1_5_7BPreview"] = "LLAVA_1_5_7B_PREVIEW";
|
838
816
|
/** Mixtral 8x7b Instruct */
|
839
817
|
GroqModels["Mixtral_8X7BInstruct"] = "MIXTRAL_8X7B_INSTRUCT";
|
840
818
|
})(GroqModels || (exports.GroqModels = GroqModels = {}));
|
@@ -1770,8 +1748,12 @@ var VoyageModels;
|
|
1770
1748
|
VoyageModels["Voyage"] = "VOYAGE";
|
1771
1749
|
/** Voyage 3.0 */
|
1772
1750
|
VoyageModels["Voyage_3_0"] = "VOYAGE_3_0";
|
1751
|
+
/** Voyage 3.0 Large */
|
1752
|
+
VoyageModels["Voyage_3_0Large"] = "VOYAGE_3_0_LARGE";
|
1773
1753
|
/** Voyage Code 2.0 */
|
1774
1754
|
VoyageModels["VoyageCode_2_0"] = "VOYAGE_CODE_2_0";
|
1755
|
+
/** Voyage Code 3.0 */
|
1756
|
+
VoyageModels["VoyageCode_3_0"] = "VOYAGE_CODE_3_0";
|
1775
1757
|
/** Voyage Finance 2.0 */
|
1776
1758
|
VoyageModels["VoyageFinance_2_0"] = "VOYAGE_FINANCE_2_0";
|
1777
1759
|
/** Voyage Law 2.0 */
|