@dagger.io/dagger 0.16.3 → 0.17.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.
- package/dist/src/api/client.gen.d.ts +919 -0
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +1692 -233
- package/dist/src/common/utils.d.ts +1 -1
- package/dist/src/common/utils.d.ts.map +1 -1
- package/dist/src/module/registry.d.ts.map +1 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +16 -16
|
@@ -726,6 +726,12 @@ export type EnvVariableID = string & {
|
|
|
726
726
|
export type ErrorID = string & {
|
|
727
727
|
__ErrorID: never;
|
|
728
728
|
};
|
|
729
|
+
/**
|
|
730
|
+
* The `ErrorValueID` scalar type represents an identifier for an object of type ErrorValue.
|
|
731
|
+
*/
|
|
732
|
+
export type ErrorValueID = string & {
|
|
733
|
+
__ErrorValueID: never;
|
|
734
|
+
};
|
|
729
735
|
/**
|
|
730
736
|
* The `FieldTypeDefID` scalar type represents an identifier for an object of type FieldTypeDef.
|
|
731
737
|
*/
|
|
@@ -905,6 +911,18 @@ export type InterfaceTypeDefID = string & {
|
|
|
905
911
|
export type JSON = string & {
|
|
906
912
|
__JSON: never;
|
|
907
913
|
};
|
|
914
|
+
/**
|
|
915
|
+
* The `LLMID` scalar type represents an identifier for an object of type LLM.
|
|
916
|
+
*/
|
|
917
|
+
export type LLMID = string & {
|
|
918
|
+
__LLMID: never;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* The `LLMVariableID` scalar type represents an identifier for an object of type LLMVariable.
|
|
922
|
+
*/
|
|
923
|
+
export type LLMVariableID = string & {
|
|
924
|
+
__LLMVariableID: never;
|
|
925
|
+
};
|
|
908
926
|
/**
|
|
909
927
|
* The `LabelID` scalar type represents an identifier for an object of type Label.
|
|
910
928
|
*/
|
|
@@ -1033,6 +1051,16 @@ export type ClientHttpOpts = {
|
|
|
1033
1051
|
*/
|
|
1034
1052
|
experimentalServiceHost?: Service;
|
|
1035
1053
|
};
|
|
1054
|
+
export type ClientLlmOpts = {
|
|
1055
|
+
/**
|
|
1056
|
+
* Model to use
|
|
1057
|
+
*/
|
|
1058
|
+
model?: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* Cap the number of API calls for this LLM
|
|
1061
|
+
*/
|
|
1062
|
+
maxAPICalls?: number;
|
|
1063
|
+
};
|
|
1036
1064
|
export type ClientLoadSecretFromNameOpts = {
|
|
1037
1065
|
accessor?: string;
|
|
1038
1066
|
};
|
|
@@ -2303,6 +2331,43 @@ export declare class Error extends BaseClient {
|
|
|
2303
2331
|
* A description of the error.
|
|
2304
2332
|
*/
|
|
2305
2333
|
message: () => Promise<string>;
|
|
2334
|
+
/**
|
|
2335
|
+
* The extensions of the error.
|
|
2336
|
+
*/
|
|
2337
|
+
values: () => Promise<ErrorValue[]>;
|
|
2338
|
+
/**
|
|
2339
|
+
* Add a value to the error.
|
|
2340
|
+
* @param name The name of the value.
|
|
2341
|
+
* @param value The value to store on the error.
|
|
2342
|
+
*/
|
|
2343
|
+
withValue: (name: string, value: JSON) => Error;
|
|
2344
|
+
/**
|
|
2345
|
+
* Call the provided function with current Error.
|
|
2346
|
+
*
|
|
2347
|
+
* This is useful for reusability and readability by not breaking the calling chain.
|
|
2348
|
+
*/
|
|
2349
|
+
with: (arg: (param: Error) => Error) => Error;
|
|
2350
|
+
}
|
|
2351
|
+
export declare class ErrorValue extends BaseClient {
|
|
2352
|
+
private readonly _id?;
|
|
2353
|
+
private readonly _name?;
|
|
2354
|
+
private readonly _value?;
|
|
2355
|
+
/**
|
|
2356
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2357
|
+
*/
|
|
2358
|
+
constructor(ctx?: Context, _id?: ErrorValueID, _name?: string, _value?: JSON);
|
|
2359
|
+
/**
|
|
2360
|
+
* A unique identifier for this ErrorValue.
|
|
2361
|
+
*/
|
|
2362
|
+
id: () => Promise<ErrorValueID>;
|
|
2363
|
+
/**
|
|
2364
|
+
* The name of the value.
|
|
2365
|
+
*/
|
|
2366
|
+
name: () => Promise<string>;
|
|
2367
|
+
/**
|
|
2368
|
+
* The value.
|
|
2369
|
+
*/
|
|
2370
|
+
value: () => Promise<JSON>;
|
|
2306
2371
|
}
|
|
2307
2372
|
/**
|
|
2308
2373
|
* A definition of a field on a custom object defined in a Module.
|
|
@@ -2834,6 +2899,842 @@ export declare class InterfaceTypeDef extends BaseClient {
|
|
|
2834
2899
|
*/
|
|
2835
2900
|
sourceModuleName: () => Promise<string>;
|
|
2836
2901
|
}
|
|
2902
|
+
export declare class LLM extends BaseClient {
|
|
2903
|
+
private readonly _id?;
|
|
2904
|
+
private readonly _getString?;
|
|
2905
|
+
private readonly _historyJSON?;
|
|
2906
|
+
private readonly _lastReply?;
|
|
2907
|
+
private readonly _model?;
|
|
2908
|
+
private readonly _provider?;
|
|
2909
|
+
private readonly _sync?;
|
|
2910
|
+
private readonly _tools?;
|
|
2911
|
+
/**
|
|
2912
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
2913
|
+
*/
|
|
2914
|
+
constructor(ctx?: Context, _id?: LLMID, _getString?: string, _historyJSON?: string, _lastReply?: string, _model?: string, _provider?: string, _sync?: LLMID, _tools?: string);
|
|
2915
|
+
/**
|
|
2916
|
+
* A unique identifier for this LLM.
|
|
2917
|
+
*/
|
|
2918
|
+
id: () => Promise<LLMID>;
|
|
2919
|
+
/**
|
|
2920
|
+
* Retrieve a the current value in the LLM environment, of type CacheVolume
|
|
2921
|
+
* @deprecated use get<TargetType> instead
|
|
2922
|
+
*/
|
|
2923
|
+
cacheVolume: () => CacheVolume;
|
|
2924
|
+
/**
|
|
2925
|
+
* Retrieve a the current value in the LLM environment, of type Container
|
|
2926
|
+
* @deprecated use get<TargetType> instead
|
|
2927
|
+
*/
|
|
2928
|
+
container: () => Container;
|
|
2929
|
+
/**
|
|
2930
|
+
* Retrieve a the current value in the LLM environment, of type CurrentModule
|
|
2931
|
+
* @deprecated use get<TargetType> instead
|
|
2932
|
+
*/
|
|
2933
|
+
currentModule: () => CurrentModule;
|
|
2934
|
+
/**
|
|
2935
|
+
* Retrieve a the current value in the LLM environment, of type Directory
|
|
2936
|
+
* @deprecated use get<TargetType> instead
|
|
2937
|
+
*/
|
|
2938
|
+
directory: () => Directory;
|
|
2939
|
+
/**
|
|
2940
|
+
* Retrieve a the current value in the LLM environment, of type EnumTypeDef
|
|
2941
|
+
* @deprecated use get<TargetType> instead
|
|
2942
|
+
*/
|
|
2943
|
+
enumTypeDef: () => EnumTypeDef;
|
|
2944
|
+
/**
|
|
2945
|
+
* Retrieve a the current value in the LLM environment, of type EnumValueTypeDef
|
|
2946
|
+
* @deprecated use get<TargetType> instead
|
|
2947
|
+
*/
|
|
2948
|
+
enumValueTypeDef: () => EnumValueTypeDef;
|
|
2949
|
+
/**
|
|
2950
|
+
* Retrieve a the current value in the LLM environment, of type Error
|
|
2951
|
+
* @deprecated use get<TargetType> instead
|
|
2952
|
+
*/
|
|
2953
|
+
error: () => Error;
|
|
2954
|
+
/**
|
|
2955
|
+
* Retrieve a the current value in the LLM environment, of type ErrorValue
|
|
2956
|
+
* @deprecated use get<TargetType> instead
|
|
2957
|
+
*/
|
|
2958
|
+
errorValue: () => ErrorValue;
|
|
2959
|
+
/**
|
|
2960
|
+
* Retrieve a the current value in the LLM environment, of type FieldTypeDef
|
|
2961
|
+
* @deprecated use get<TargetType> instead
|
|
2962
|
+
*/
|
|
2963
|
+
fieldTypeDef: () => FieldTypeDef;
|
|
2964
|
+
/**
|
|
2965
|
+
* Retrieve a the current value in the LLM environment, of type File
|
|
2966
|
+
* @deprecated use get<TargetType> instead
|
|
2967
|
+
*/
|
|
2968
|
+
file: () => File;
|
|
2969
|
+
/**
|
|
2970
|
+
* Retrieve a the current value in the LLM environment, of type Function
|
|
2971
|
+
* @deprecated use get<TargetType> instead
|
|
2972
|
+
*/
|
|
2973
|
+
function_: () => Function_;
|
|
2974
|
+
/**
|
|
2975
|
+
* Retrieve a the current value in the LLM environment, of type FunctionArg
|
|
2976
|
+
* @deprecated use get<TargetType> instead
|
|
2977
|
+
*/
|
|
2978
|
+
functionArg: () => FunctionArg;
|
|
2979
|
+
/**
|
|
2980
|
+
* Retrieve a the current value in the LLM environment, of type FunctionCall
|
|
2981
|
+
* @deprecated use get<TargetType> instead
|
|
2982
|
+
*/
|
|
2983
|
+
functionCall: () => FunctionCall;
|
|
2984
|
+
/**
|
|
2985
|
+
* Retrieve a the current value in the LLM environment, of type FunctionCallArgValue
|
|
2986
|
+
* @deprecated use get<TargetType> instead
|
|
2987
|
+
*/
|
|
2988
|
+
functionCallArgValue: () => FunctionCallArgValue;
|
|
2989
|
+
/**
|
|
2990
|
+
* Retrieve a the current value in the LLM environment, of type GeneratedCode
|
|
2991
|
+
* @deprecated use get<TargetType> instead
|
|
2992
|
+
*/
|
|
2993
|
+
generatedCode: () => GeneratedCode;
|
|
2994
|
+
/**
|
|
2995
|
+
* Retrieve a variable in the llm environment, of type CacheVolume
|
|
2996
|
+
* @param name The name of the variable
|
|
2997
|
+
*/
|
|
2998
|
+
getCacheVolume: (name: string) => CacheVolume;
|
|
2999
|
+
/**
|
|
3000
|
+
* Retrieve a variable in the llm environment, of type Container
|
|
3001
|
+
* @param name The name of the variable
|
|
3002
|
+
*/
|
|
3003
|
+
getContainer: (name: string) => Container;
|
|
3004
|
+
/**
|
|
3005
|
+
* Retrieve a variable in the llm environment, of type CurrentModule
|
|
3006
|
+
* @param name The name of the variable
|
|
3007
|
+
*/
|
|
3008
|
+
getCurrentModule: (name: string) => CurrentModule;
|
|
3009
|
+
/**
|
|
3010
|
+
* Retrieve a variable in the llm environment, of type Directory
|
|
3011
|
+
* @param name The name of the variable
|
|
3012
|
+
*/
|
|
3013
|
+
getDirectory: (name: string) => Directory;
|
|
3014
|
+
/**
|
|
3015
|
+
* Retrieve a variable in the llm environment, of type EnumTypeDef
|
|
3016
|
+
* @param name The name of the variable
|
|
3017
|
+
*/
|
|
3018
|
+
getEnumTypeDef: (name: string) => EnumTypeDef;
|
|
3019
|
+
/**
|
|
3020
|
+
* Retrieve a variable in the llm environment, of type EnumValueTypeDef
|
|
3021
|
+
* @param name The name of the variable
|
|
3022
|
+
*/
|
|
3023
|
+
getEnumValueTypeDef: (name: string) => EnumValueTypeDef;
|
|
3024
|
+
/**
|
|
3025
|
+
* Retrieve a variable in the llm environment, of type Error
|
|
3026
|
+
* @param name The name of the variable
|
|
3027
|
+
*/
|
|
3028
|
+
getError: (name: string) => Error;
|
|
3029
|
+
/**
|
|
3030
|
+
* Retrieve a variable in the llm environment, of type ErrorValue
|
|
3031
|
+
* @param name The name of the variable
|
|
3032
|
+
*/
|
|
3033
|
+
getErrorValue: (name: string) => ErrorValue;
|
|
3034
|
+
/**
|
|
3035
|
+
* Retrieve a variable in the llm environment, of type FieldTypeDef
|
|
3036
|
+
* @param name The name of the variable
|
|
3037
|
+
*/
|
|
3038
|
+
getFieldTypeDef: (name: string) => FieldTypeDef;
|
|
3039
|
+
/**
|
|
3040
|
+
* Retrieve a variable in the llm environment, of type File
|
|
3041
|
+
* @param name The name of the variable
|
|
3042
|
+
*/
|
|
3043
|
+
getFile: (name: string) => File;
|
|
3044
|
+
/**
|
|
3045
|
+
* Retrieve a variable in the llm environment, of type Function
|
|
3046
|
+
* @param name The name of the variable
|
|
3047
|
+
*/
|
|
3048
|
+
getFunction: (name: string) => Function_;
|
|
3049
|
+
/**
|
|
3050
|
+
* Retrieve a variable in the llm environment, of type FunctionArg
|
|
3051
|
+
* @param name The name of the variable
|
|
3052
|
+
*/
|
|
3053
|
+
getFunctionArg: (name: string) => FunctionArg;
|
|
3054
|
+
/**
|
|
3055
|
+
* Retrieve a variable in the llm environment, of type FunctionCall
|
|
3056
|
+
* @param name The name of the variable
|
|
3057
|
+
*/
|
|
3058
|
+
getFunctionCall: (name: string) => FunctionCall;
|
|
3059
|
+
/**
|
|
3060
|
+
* Retrieve a variable in the llm environment, of type FunctionCallArgValue
|
|
3061
|
+
* @param name The name of the variable
|
|
3062
|
+
*/
|
|
3063
|
+
getFunctionCallArgValue: (name: string) => FunctionCallArgValue;
|
|
3064
|
+
/**
|
|
3065
|
+
* Retrieve a variable in the llm environment, of type GeneratedCode
|
|
3066
|
+
* @param name The name of the variable
|
|
3067
|
+
*/
|
|
3068
|
+
getGeneratedCode: (name: string) => GeneratedCode;
|
|
3069
|
+
/**
|
|
3070
|
+
* Retrieve a variable in the llm environment, of type GitRef
|
|
3071
|
+
* @param name The name of the variable
|
|
3072
|
+
*/
|
|
3073
|
+
getGitRef: (name: string) => GitRef;
|
|
3074
|
+
/**
|
|
3075
|
+
* Retrieve a variable in the llm environment, of type GitRepository
|
|
3076
|
+
* @param name The name of the variable
|
|
3077
|
+
*/
|
|
3078
|
+
getGitRepository: (name: string) => GitRepository;
|
|
3079
|
+
/**
|
|
3080
|
+
* Retrieve a variable in the llm environment, of type InputTypeDef
|
|
3081
|
+
* @param name The name of the variable
|
|
3082
|
+
*/
|
|
3083
|
+
getInputTypeDef: (name: string) => InputTypeDef;
|
|
3084
|
+
/**
|
|
3085
|
+
* Retrieve a variable in the llm environment, of type InterfaceTypeDef
|
|
3086
|
+
* @param name The name of the variable
|
|
3087
|
+
*/
|
|
3088
|
+
getInterfaceTypeDef: (name: string) => InterfaceTypeDef;
|
|
3089
|
+
/**
|
|
3090
|
+
* Retrieve a variable in the llm environment, of type LLM
|
|
3091
|
+
* @param name The name of the variable
|
|
3092
|
+
*/
|
|
3093
|
+
getLLM: (name: string) => LLM;
|
|
3094
|
+
/**
|
|
3095
|
+
* Retrieve a variable in the llm environment, of type ListTypeDef
|
|
3096
|
+
* @param name The name of the variable
|
|
3097
|
+
*/
|
|
3098
|
+
getListTypeDef: (name: string) => ListTypeDef;
|
|
3099
|
+
/**
|
|
3100
|
+
* Retrieve a variable in the llm environment, of type Module
|
|
3101
|
+
* @param name The name of the variable
|
|
3102
|
+
*/
|
|
3103
|
+
getModule: (name: string) => Module_;
|
|
3104
|
+
/**
|
|
3105
|
+
* Retrieve a variable in the llm environment, of type ModuleConfigClient
|
|
3106
|
+
* @param name The name of the variable
|
|
3107
|
+
*/
|
|
3108
|
+
getModuleConfigClient: (name: string) => ModuleConfigClient;
|
|
3109
|
+
/**
|
|
3110
|
+
* Retrieve a variable in the llm environment, of type ModuleSource
|
|
3111
|
+
* @param name The name of the variable
|
|
3112
|
+
*/
|
|
3113
|
+
getModuleSource: (name: string) => ModuleSource;
|
|
3114
|
+
/**
|
|
3115
|
+
* Retrieve a variable in the llm environment, of type ObjectTypeDef
|
|
3116
|
+
* @param name The name of the variable
|
|
3117
|
+
*/
|
|
3118
|
+
getObjectTypeDef: (name: string) => ObjectTypeDef;
|
|
3119
|
+
/**
|
|
3120
|
+
* Retrieve a variable in the llm environment, of type SDKConfig
|
|
3121
|
+
* @param name The name of the variable
|
|
3122
|
+
*/
|
|
3123
|
+
getSDKConfig: (name: string) => SDKConfig;
|
|
3124
|
+
/**
|
|
3125
|
+
* Retrieve a variable in the llm environment, of type ScalarTypeDef
|
|
3126
|
+
* @param name The name of the variable
|
|
3127
|
+
*/
|
|
3128
|
+
getScalarTypeDef: (name: string) => ScalarTypeDef;
|
|
3129
|
+
/**
|
|
3130
|
+
* Retrieve a variable in the llm environment, of type Secret
|
|
3131
|
+
* @param name The name of the variable
|
|
3132
|
+
*/
|
|
3133
|
+
getSecret: (name: string) => Secret;
|
|
3134
|
+
/**
|
|
3135
|
+
* Retrieve a variable in the llm environment, of type Service
|
|
3136
|
+
* @param name The name of the variable
|
|
3137
|
+
*/
|
|
3138
|
+
getService: (name: string) => Service;
|
|
3139
|
+
/**
|
|
3140
|
+
* Retrieve a variable in the llm environment, of type Socket
|
|
3141
|
+
* @param name The name of the variable
|
|
3142
|
+
*/
|
|
3143
|
+
getSocket: (name: string) => Socket;
|
|
3144
|
+
/**
|
|
3145
|
+
* Retrieve a variable in the llm environment, of type SourceMap
|
|
3146
|
+
* @param name The name of the variable
|
|
3147
|
+
*/
|
|
3148
|
+
getSourceMap: (name: string) => SourceMap;
|
|
3149
|
+
/**
|
|
3150
|
+
* Get a string variable from the LLM's environment
|
|
3151
|
+
* @param name The variable name
|
|
3152
|
+
*/
|
|
3153
|
+
getString: (name: string) => Promise<string>;
|
|
3154
|
+
/**
|
|
3155
|
+
* Retrieve a variable in the llm environment, of type Terminal
|
|
3156
|
+
* @param name The name of the variable
|
|
3157
|
+
*/
|
|
3158
|
+
getTerminal: (name: string) => Terminal;
|
|
3159
|
+
/**
|
|
3160
|
+
* Retrieve a variable in the llm environment, of type TypeDef
|
|
3161
|
+
* @param name The name of the variable
|
|
3162
|
+
*/
|
|
3163
|
+
getTypeDef: (name: string) => TypeDef;
|
|
3164
|
+
/**
|
|
3165
|
+
* Retrieve a the current value in the LLM environment, of type GitRef
|
|
3166
|
+
* @deprecated use get<TargetType> instead
|
|
3167
|
+
*/
|
|
3168
|
+
gitRef: () => GitRef;
|
|
3169
|
+
/**
|
|
3170
|
+
* Retrieve a the current value in the LLM environment, of type GitRepository
|
|
3171
|
+
* @deprecated use get<TargetType> instead
|
|
3172
|
+
*/
|
|
3173
|
+
gitRepository: () => GitRepository;
|
|
3174
|
+
/**
|
|
3175
|
+
* return the llm message history
|
|
3176
|
+
*/
|
|
3177
|
+
history: () => Promise<string[]>;
|
|
3178
|
+
/**
|
|
3179
|
+
* return the raw llm message history as json
|
|
3180
|
+
*/
|
|
3181
|
+
historyJSON: () => Promise<string>;
|
|
3182
|
+
/**
|
|
3183
|
+
* Retrieve a the current value in the LLM environment, of type InputTypeDef
|
|
3184
|
+
* @deprecated use get<TargetType> instead
|
|
3185
|
+
*/
|
|
3186
|
+
inputTypeDef: () => InputTypeDef;
|
|
3187
|
+
/**
|
|
3188
|
+
* Retrieve a the current value in the LLM environment, of type InterfaceTypeDef
|
|
3189
|
+
* @deprecated use get<TargetType> instead
|
|
3190
|
+
*/
|
|
3191
|
+
interfaceTypeDef: () => InterfaceTypeDef;
|
|
3192
|
+
/**
|
|
3193
|
+
* Retrieve a the current value in the LLM environment, of type LLM
|
|
3194
|
+
* @deprecated use get<TargetType> instead
|
|
3195
|
+
*/
|
|
3196
|
+
lLM: () => LLM;
|
|
3197
|
+
/**
|
|
3198
|
+
* return the last llm reply from the history
|
|
3199
|
+
*/
|
|
3200
|
+
lastReply: () => Promise<string>;
|
|
3201
|
+
/**
|
|
3202
|
+
* Retrieve a the current value in the LLM environment, of type ListTypeDef
|
|
3203
|
+
* @deprecated use get<TargetType> instead
|
|
3204
|
+
*/
|
|
3205
|
+
listTypeDef: () => ListTypeDef;
|
|
3206
|
+
/**
|
|
3207
|
+
* synchronize LLM state
|
|
3208
|
+
* @deprecated use sync
|
|
3209
|
+
*/
|
|
3210
|
+
loop: () => LLM;
|
|
3211
|
+
/**
|
|
3212
|
+
* return the model used by the llm
|
|
3213
|
+
*/
|
|
3214
|
+
model: () => Promise<string>;
|
|
3215
|
+
/**
|
|
3216
|
+
* Retrieve a the current value in the LLM environment, of type Module
|
|
3217
|
+
* @deprecated use get<TargetType> instead
|
|
3218
|
+
*/
|
|
3219
|
+
module_: () => Module_;
|
|
3220
|
+
/**
|
|
3221
|
+
* Retrieve a the current value in the LLM environment, of type ModuleConfigClient
|
|
3222
|
+
* @deprecated use get<TargetType> instead
|
|
3223
|
+
*/
|
|
3224
|
+
moduleConfigClient: () => ModuleConfigClient;
|
|
3225
|
+
/**
|
|
3226
|
+
* Retrieve a the current value in the LLM environment, of type ModuleSource
|
|
3227
|
+
* @deprecated use get<TargetType> instead
|
|
3228
|
+
*/
|
|
3229
|
+
moduleSource: () => ModuleSource;
|
|
3230
|
+
/**
|
|
3231
|
+
* Retrieve a the current value in the LLM environment, of type ObjectTypeDef
|
|
3232
|
+
* @deprecated use get<TargetType> instead
|
|
3233
|
+
*/
|
|
3234
|
+
objectTypeDef: () => ObjectTypeDef;
|
|
3235
|
+
/**
|
|
3236
|
+
* return the provider used by the llm
|
|
3237
|
+
*/
|
|
3238
|
+
provider: () => Promise<string>;
|
|
3239
|
+
/**
|
|
3240
|
+
* Retrieve a the current value in the LLM environment, of type ScalarTypeDef
|
|
3241
|
+
* @deprecated use get<TargetType> instead
|
|
3242
|
+
*/
|
|
3243
|
+
scalarTypeDef: () => ScalarTypeDef;
|
|
3244
|
+
/**
|
|
3245
|
+
* Retrieve a the current value in the LLM environment, of type SDKConfig
|
|
3246
|
+
* @deprecated use get<TargetType> instead
|
|
3247
|
+
*/
|
|
3248
|
+
sdkconfig: () => SDKConfig;
|
|
3249
|
+
/**
|
|
3250
|
+
* Retrieve a the current value in the LLM environment, of type Secret
|
|
3251
|
+
* @deprecated use get<TargetType> instead
|
|
3252
|
+
*/
|
|
3253
|
+
secret: () => Secret;
|
|
3254
|
+
/**
|
|
3255
|
+
* Retrieve a the current value in the LLM environment, of type Service
|
|
3256
|
+
* @deprecated use get<TargetType> instead
|
|
3257
|
+
*/
|
|
3258
|
+
service: () => Service;
|
|
3259
|
+
/**
|
|
3260
|
+
* Set a variable of type CacheVolume in the llm environment
|
|
3261
|
+
* @param name The name of the variable
|
|
3262
|
+
* @param value The CacheVolume value to assign to the variable
|
|
3263
|
+
*/
|
|
3264
|
+
setCacheVolume: (name: string, value: CacheVolume) => LLM;
|
|
3265
|
+
/**
|
|
3266
|
+
* Set a variable of type Container in the llm environment
|
|
3267
|
+
* @param name The name of the variable
|
|
3268
|
+
* @param value The Container value to assign to the variable
|
|
3269
|
+
*/
|
|
3270
|
+
setContainer: (name: string, value: Container) => LLM;
|
|
3271
|
+
/**
|
|
3272
|
+
* Set a variable of type CurrentModule in the llm environment
|
|
3273
|
+
* @param name The name of the variable
|
|
3274
|
+
* @param value The CurrentModule value to assign to the variable
|
|
3275
|
+
*/
|
|
3276
|
+
setCurrentModule: (name: string, value: CurrentModule) => LLM;
|
|
3277
|
+
/**
|
|
3278
|
+
* Set a variable of type Directory in the llm environment
|
|
3279
|
+
* @param name The name of the variable
|
|
3280
|
+
* @param value The Directory value to assign to the variable
|
|
3281
|
+
*/
|
|
3282
|
+
setDirectory: (name: string, value: Directory) => LLM;
|
|
3283
|
+
/**
|
|
3284
|
+
* Set a variable of type EnumTypeDef in the llm environment
|
|
3285
|
+
* @param name The name of the variable
|
|
3286
|
+
* @param value The EnumTypeDef value to assign to the variable
|
|
3287
|
+
*/
|
|
3288
|
+
setEnumTypeDef: (name: string, value: EnumTypeDef) => LLM;
|
|
3289
|
+
/**
|
|
3290
|
+
* Set a variable of type EnumValueTypeDef in the llm environment
|
|
3291
|
+
* @param name The name of the variable
|
|
3292
|
+
* @param value The EnumValueTypeDef value to assign to the variable
|
|
3293
|
+
*/
|
|
3294
|
+
setEnumValueTypeDef: (name: string, value: EnumValueTypeDef) => LLM;
|
|
3295
|
+
/**
|
|
3296
|
+
* Set a variable of type Error in the llm environment
|
|
3297
|
+
* @param name The name of the variable
|
|
3298
|
+
* @param value The Error value to assign to the variable
|
|
3299
|
+
*/
|
|
3300
|
+
setError: (name: string, value: Error) => LLM;
|
|
3301
|
+
/**
|
|
3302
|
+
* Set a variable of type ErrorValue in the llm environment
|
|
3303
|
+
* @param name The name of the variable
|
|
3304
|
+
* @param value The ErrorValue value to assign to the variable
|
|
3305
|
+
*/
|
|
3306
|
+
setErrorValue: (name: string, value: ErrorValue) => LLM;
|
|
3307
|
+
/**
|
|
3308
|
+
* Set a variable of type FieldTypeDef in the llm environment
|
|
3309
|
+
* @param name The name of the variable
|
|
3310
|
+
* @param value The FieldTypeDef value to assign to the variable
|
|
3311
|
+
*/
|
|
3312
|
+
setFieldTypeDef: (name: string, value: FieldTypeDef) => LLM;
|
|
3313
|
+
/**
|
|
3314
|
+
* Set a variable of type File in the llm environment
|
|
3315
|
+
* @param name The name of the variable
|
|
3316
|
+
* @param value The File value to assign to the variable
|
|
3317
|
+
*/
|
|
3318
|
+
setFile: (name: string, value: File) => LLM;
|
|
3319
|
+
/**
|
|
3320
|
+
* Set a variable of type Function in the llm environment
|
|
3321
|
+
* @param name The name of the variable
|
|
3322
|
+
* @param value The Function value to assign to the variable
|
|
3323
|
+
*/
|
|
3324
|
+
setFunction: (name: string, value: Function_) => LLM;
|
|
3325
|
+
/**
|
|
3326
|
+
* Set a variable of type FunctionArg in the llm environment
|
|
3327
|
+
* @param name The name of the variable
|
|
3328
|
+
* @param value The FunctionArg value to assign to the variable
|
|
3329
|
+
*/
|
|
3330
|
+
setFunctionArg: (name: string, value: FunctionArg) => LLM;
|
|
3331
|
+
/**
|
|
3332
|
+
* Set a variable of type FunctionCall in the llm environment
|
|
3333
|
+
* @param name The name of the variable
|
|
3334
|
+
* @param value The FunctionCall value to assign to the variable
|
|
3335
|
+
*/
|
|
3336
|
+
setFunctionCall: (name: string, value: FunctionCall) => LLM;
|
|
3337
|
+
/**
|
|
3338
|
+
* Set a variable of type FunctionCallArgValue in the llm environment
|
|
3339
|
+
* @param name The name of the variable
|
|
3340
|
+
* @param value The FunctionCallArgValue value to assign to the variable
|
|
3341
|
+
*/
|
|
3342
|
+
setFunctionCallArgValue: (name: string, value: FunctionCallArgValue) => LLM;
|
|
3343
|
+
/**
|
|
3344
|
+
* Set a variable of type GeneratedCode in the llm environment
|
|
3345
|
+
* @param name The name of the variable
|
|
3346
|
+
* @param value The GeneratedCode value to assign to the variable
|
|
3347
|
+
*/
|
|
3348
|
+
setGeneratedCode: (name: string, value: GeneratedCode) => LLM;
|
|
3349
|
+
/**
|
|
3350
|
+
* Set a variable of type GitRef in the llm environment
|
|
3351
|
+
* @param name The name of the variable
|
|
3352
|
+
* @param value The GitRef value to assign to the variable
|
|
3353
|
+
*/
|
|
3354
|
+
setGitRef: (name: string, value: GitRef) => LLM;
|
|
3355
|
+
/**
|
|
3356
|
+
* Set a variable of type GitRepository in the llm environment
|
|
3357
|
+
* @param name The name of the variable
|
|
3358
|
+
* @param value The GitRepository value to assign to the variable
|
|
3359
|
+
*/
|
|
3360
|
+
setGitRepository: (name: string, value: GitRepository) => LLM;
|
|
3361
|
+
/**
|
|
3362
|
+
* Set a variable of type InputTypeDef in the llm environment
|
|
3363
|
+
* @param name The name of the variable
|
|
3364
|
+
* @param value The InputTypeDef value to assign to the variable
|
|
3365
|
+
*/
|
|
3366
|
+
setInputTypeDef: (name: string, value: InputTypeDef) => LLM;
|
|
3367
|
+
/**
|
|
3368
|
+
* Set a variable of type InterfaceTypeDef in the llm environment
|
|
3369
|
+
* @param name The name of the variable
|
|
3370
|
+
* @param value The InterfaceTypeDef value to assign to the variable
|
|
3371
|
+
*/
|
|
3372
|
+
setInterfaceTypeDef: (name: string, value: InterfaceTypeDef) => LLM;
|
|
3373
|
+
/**
|
|
3374
|
+
* Set a variable of type LLM in the llm environment
|
|
3375
|
+
* @param name The name of the variable
|
|
3376
|
+
* @param value The LLM value to assign to the variable
|
|
3377
|
+
*/
|
|
3378
|
+
setLLM: (name: string, value: LLM) => LLM;
|
|
3379
|
+
/**
|
|
3380
|
+
* Set a variable of type ListTypeDef in the llm environment
|
|
3381
|
+
* @param name The name of the variable
|
|
3382
|
+
* @param value The ListTypeDef value to assign to the variable
|
|
3383
|
+
*/
|
|
3384
|
+
setListTypeDef: (name: string, value: ListTypeDef) => LLM;
|
|
3385
|
+
/**
|
|
3386
|
+
* Set a variable of type Module in the llm environment
|
|
3387
|
+
* @param name The name of the variable
|
|
3388
|
+
* @param value The Module value to assign to the variable
|
|
3389
|
+
*/
|
|
3390
|
+
setModule: (name: string, value: Module_) => LLM;
|
|
3391
|
+
/**
|
|
3392
|
+
* Set a variable of type ModuleConfigClient in the llm environment
|
|
3393
|
+
* @param name The name of the variable
|
|
3394
|
+
* @param value The ModuleConfigClient value to assign to the variable
|
|
3395
|
+
*/
|
|
3396
|
+
setModuleConfigClient: (name: string, value: ModuleConfigClient) => LLM;
|
|
3397
|
+
/**
|
|
3398
|
+
* Set a variable of type ModuleSource in the llm environment
|
|
3399
|
+
* @param name The name of the variable
|
|
3400
|
+
* @param value The ModuleSource value to assign to the variable
|
|
3401
|
+
*/
|
|
3402
|
+
setModuleSource: (name: string, value: ModuleSource) => LLM;
|
|
3403
|
+
/**
|
|
3404
|
+
* Set a variable of type ObjectTypeDef in the llm environment
|
|
3405
|
+
* @param name The name of the variable
|
|
3406
|
+
* @param value The ObjectTypeDef value to assign to the variable
|
|
3407
|
+
*/
|
|
3408
|
+
setObjectTypeDef: (name: string, value: ObjectTypeDef) => LLM;
|
|
3409
|
+
/**
|
|
3410
|
+
* Set a variable of type SDKConfig in the llm environment
|
|
3411
|
+
* @param name The name of the variable
|
|
3412
|
+
* @param value The SDKConfig value to assign to the variable
|
|
3413
|
+
*/
|
|
3414
|
+
setSDKConfig: (name: string, value: SDKConfig) => LLM;
|
|
3415
|
+
/**
|
|
3416
|
+
* Set a variable of type ScalarTypeDef in the llm environment
|
|
3417
|
+
* @param name The name of the variable
|
|
3418
|
+
* @param value The ScalarTypeDef value to assign to the variable
|
|
3419
|
+
*/
|
|
3420
|
+
setScalarTypeDef: (name: string, value: ScalarTypeDef) => LLM;
|
|
3421
|
+
/**
|
|
3422
|
+
* Set a variable of type Secret in the llm environment
|
|
3423
|
+
* @param name The name of the variable
|
|
3424
|
+
* @param value The Secret value to assign to the variable
|
|
3425
|
+
*/
|
|
3426
|
+
setSecret: (name: string, value: Secret) => LLM;
|
|
3427
|
+
/**
|
|
3428
|
+
* Set a variable of type Service in the llm environment
|
|
3429
|
+
* @param name The name of the variable
|
|
3430
|
+
* @param value The Service value to assign to the variable
|
|
3431
|
+
*/
|
|
3432
|
+
setService: (name: string, value: Service) => LLM;
|
|
3433
|
+
/**
|
|
3434
|
+
* Set a variable of type Socket in the llm environment
|
|
3435
|
+
* @param name The name of the variable
|
|
3436
|
+
* @param value The Socket value to assign to the variable
|
|
3437
|
+
*/
|
|
3438
|
+
setSocket: (name: string, value: Socket) => LLM;
|
|
3439
|
+
/**
|
|
3440
|
+
* Set a variable of type SourceMap in the llm environment
|
|
3441
|
+
* @param name The name of the variable
|
|
3442
|
+
* @param value The SourceMap value to assign to the variable
|
|
3443
|
+
*/
|
|
3444
|
+
setSourceMap: (name: string, value: SourceMap) => LLM;
|
|
3445
|
+
/**
|
|
3446
|
+
* Add a string variable to the LLM's environment
|
|
3447
|
+
* @param name The variable name
|
|
3448
|
+
* @param value The variable value
|
|
3449
|
+
*/
|
|
3450
|
+
setString: (name: string, value: string) => LLM;
|
|
3451
|
+
/**
|
|
3452
|
+
* Set a variable of type Terminal in the llm environment
|
|
3453
|
+
* @param name The name of the variable
|
|
3454
|
+
* @param value The Terminal value to assign to the variable
|
|
3455
|
+
*/
|
|
3456
|
+
setTerminal: (name: string, value: Terminal) => LLM;
|
|
3457
|
+
/**
|
|
3458
|
+
* Set a variable of type TypeDef in the llm environment
|
|
3459
|
+
* @param name The name of the variable
|
|
3460
|
+
* @param value The TypeDef value to assign to the variable
|
|
3461
|
+
*/
|
|
3462
|
+
setTypeDef: (name: string, value: TypeDef) => LLM;
|
|
3463
|
+
/**
|
|
3464
|
+
* Retrieve a the current value in the LLM environment, of type Socket
|
|
3465
|
+
* @deprecated use get<TargetType> instead
|
|
3466
|
+
*/
|
|
3467
|
+
socket: () => Socket;
|
|
3468
|
+
/**
|
|
3469
|
+
* Retrieve a the current value in the LLM environment, of type SourceMap
|
|
3470
|
+
* @deprecated use get<TargetType> instead
|
|
3471
|
+
*/
|
|
3472
|
+
sourceMap: () => SourceMap;
|
|
3473
|
+
/**
|
|
3474
|
+
* synchronize LLM state
|
|
3475
|
+
*/
|
|
3476
|
+
sync: () => Promise<LLM>;
|
|
3477
|
+
/**
|
|
3478
|
+
* Retrieve a the current value in the LLM environment, of type Terminal
|
|
3479
|
+
* @deprecated use get<TargetType> instead
|
|
3480
|
+
*/
|
|
3481
|
+
terminal: () => Terminal;
|
|
3482
|
+
/**
|
|
3483
|
+
* print documentation for available tools
|
|
3484
|
+
*/
|
|
3485
|
+
tools: () => Promise<string>;
|
|
3486
|
+
/**
|
|
3487
|
+
* Retrieve a the current value in the LLM environment, of type TypeDef
|
|
3488
|
+
* @deprecated use get<TargetType> instead
|
|
3489
|
+
*/
|
|
3490
|
+
typeDef: () => TypeDef;
|
|
3491
|
+
/**
|
|
3492
|
+
* list variables in the LLM environment
|
|
3493
|
+
*/
|
|
3494
|
+
variables: () => Promise<LLMVariable[]>;
|
|
3495
|
+
/**
|
|
3496
|
+
* Set a variable of type CacheVolume in the llm environment
|
|
3497
|
+
* @param value The CacheVolume value to assign to the variable
|
|
3498
|
+
* @deprecated use set<TargetType> instead
|
|
3499
|
+
*/
|
|
3500
|
+
withCacheVolume: (value: CacheVolume) => LLM;
|
|
3501
|
+
/**
|
|
3502
|
+
* Set a variable of type Container in the llm environment
|
|
3503
|
+
* @param value The Container value to assign to the variable
|
|
3504
|
+
* @deprecated use set<TargetType> instead
|
|
3505
|
+
*/
|
|
3506
|
+
withContainer: (value: Container) => LLM;
|
|
3507
|
+
/**
|
|
3508
|
+
* Set a variable of type CurrentModule in the llm environment
|
|
3509
|
+
* @param value The CurrentModule value to assign to the variable
|
|
3510
|
+
* @deprecated use set<TargetType> instead
|
|
3511
|
+
*/
|
|
3512
|
+
withCurrentModule: (value: CurrentModule) => LLM;
|
|
3513
|
+
/**
|
|
3514
|
+
* Set a variable of type Directory in the llm environment
|
|
3515
|
+
* @param value The Directory value to assign to the variable
|
|
3516
|
+
* @deprecated use set<TargetType> instead
|
|
3517
|
+
*/
|
|
3518
|
+
withDirectory: (value: Directory) => LLM;
|
|
3519
|
+
/**
|
|
3520
|
+
* Set a variable of type EnumTypeDef in the llm environment
|
|
3521
|
+
* @param value The EnumTypeDef value to assign to the variable
|
|
3522
|
+
* @deprecated use set<TargetType> instead
|
|
3523
|
+
*/
|
|
3524
|
+
withEnumTypeDef: (value: EnumTypeDef) => LLM;
|
|
3525
|
+
/**
|
|
3526
|
+
* Set a variable of type EnumValueTypeDef in the llm environment
|
|
3527
|
+
* @param value The EnumValueTypeDef value to assign to the variable
|
|
3528
|
+
* @deprecated use set<TargetType> instead
|
|
3529
|
+
*/
|
|
3530
|
+
withEnumValueTypeDef: (value: EnumValueTypeDef) => LLM;
|
|
3531
|
+
/**
|
|
3532
|
+
* Set a variable of type Error in the llm environment
|
|
3533
|
+
* @param value The Error value to assign to the variable
|
|
3534
|
+
* @deprecated use set<TargetType> instead
|
|
3535
|
+
*/
|
|
3536
|
+
withError: (value: Error) => LLM;
|
|
3537
|
+
/**
|
|
3538
|
+
* Set a variable of type ErrorValue in the llm environment
|
|
3539
|
+
* @param value The ErrorValue value to assign to the variable
|
|
3540
|
+
* @deprecated use set<TargetType> instead
|
|
3541
|
+
*/
|
|
3542
|
+
withErrorValue: (value: ErrorValue) => LLM;
|
|
3543
|
+
/**
|
|
3544
|
+
* Set a variable of type FieldTypeDef in the llm environment
|
|
3545
|
+
* @param value The FieldTypeDef value to assign to the variable
|
|
3546
|
+
* @deprecated use set<TargetType> instead
|
|
3547
|
+
*/
|
|
3548
|
+
withFieldTypeDef: (value: FieldTypeDef) => LLM;
|
|
3549
|
+
/**
|
|
3550
|
+
* Set a variable of type File in the llm environment
|
|
3551
|
+
* @param value The File value to assign to the variable
|
|
3552
|
+
* @deprecated use set<TargetType> instead
|
|
3553
|
+
*/
|
|
3554
|
+
withFile: (value: File) => LLM;
|
|
3555
|
+
/**
|
|
3556
|
+
* Set a variable of type Function in the llm environment
|
|
3557
|
+
* @param value The Function value to assign to the variable
|
|
3558
|
+
* @deprecated use set<TargetType> instead
|
|
3559
|
+
*/
|
|
3560
|
+
withFunction: (value: Function_) => LLM;
|
|
3561
|
+
/**
|
|
3562
|
+
* Set a variable of type FunctionArg in the llm environment
|
|
3563
|
+
* @param value The FunctionArg value to assign to the variable
|
|
3564
|
+
* @deprecated use set<TargetType> instead
|
|
3565
|
+
*/
|
|
3566
|
+
withFunctionArg: (value: FunctionArg) => LLM;
|
|
3567
|
+
/**
|
|
3568
|
+
* Set a variable of type FunctionCall in the llm environment
|
|
3569
|
+
* @param value The FunctionCall value to assign to the variable
|
|
3570
|
+
* @deprecated use set<TargetType> instead
|
|
3571
|
+
*/
|
|
3572
|
+
withFunctionCall: (value: FunctionCall) => LLM;
|
|
3573
|
+
/**
|
|
3574
|
+
* Set a variable of type FunctionCallArgValue in the llm environment
|
|
3575
|
+
* @param value The FunctionCallArgValue value to assign to the variable
|
|
3576
|
+
* @deprecated use set<TargetType> instead
|
|
3577
|
+
*/
|
|
3578
|
+
withFunctionCallArgValue: (value: FunctionCallArgValue) => LLM;
|
|
3579
|
+
/**
|
|
3580
|
+
* Set a variable of type GeneratedCode in the llm environment
|
|
3581
|
+
* @param value The GeneratedCode value to assign to the variable
|
|
3582
|
+
* @deprecated use set<TargetType> instead
|
|
3583
|
+
*/
|
|
3584
|
+
withGeneratedCode: (value: GeneratedCode) => LLM;
|
|
3585
|
+
/**
|
|
3586
|
+
* Set a variable of type GitRef in the llm environment
|
|
3587
|
+
* @param value The GitRef value to assign to the variable
|
|
3588
|
+
* @deprecated use set<TargetType> instead
|
|
3589
|
+
*/
|
|
3590
|
+
withGitRef: (value: GitRef) => LLM;
|
|
3591
|
+
/**
|
|
3592
|
+
* Set a variable of type GitRepository in the llm environment
|
|
3593
|
+
* @param value The GitRepository value to assign to the variable
|
|
3594
|
+
* @deprecated use set<TargetType> instead
|
|
3595
|
+
*/
|
|
3596
|
+
withGitRepository: (value: GitRepository) => LLM;
|
|
3597
|
+
/**
|
|
3598
|
+
* Set a variable of type InputTypeDef in the llm environment
|
|
3599
|
+
* @param value The InputTypeDef value to assign to the variable
|
|
3600
|
+
* @deprecated use set<TargetType> instead
|
|
3601
|
+
*/
|
|
3602
|
+
withInputTypeDef: (value: InputTypeDef) => LLM;
|
|
3603
|
+
/**
|
|
3604
|
+
* Set a variable of type InterfaceTypeDef in the llm environment
|
|
3605
|
+
* @param value The InterfaceTypeDef value to assign to the variable
|
|
3606
|
+
* @deprecated use set<TargetType> instead
|
|
3607
|
+
*/
|
|
3608
|
+
withInterfaceTypeDef: (value: InterfaceTypeDef) => LLM;
|
|
3609
|
+
/**
|
|
3610
|
+
* Set a variable of type LLM in the llm environment
|
|
3611
|
+
* @param value The LLM value to assign to the variable
|
|
3612
|
+
* @deprecated use set<TargetType> instead
|
|
3613
|
+
*/
|
|
3614
|
+
withLLM: (value: LLM) => LLM;
|
|
3615
|
+
/**
|
|
3616
|
+
* Set a variable of type ListTypeDef in the llm environment
|
|
3617
|
+
* @param value The ListTypeDef value to assign to the variable
|
|
3618
|
+
* @deprecated use set<TargetType> instead
|
|
3619
|
+
*/
|
|
3620
|
+
withListTypeDef: (value: ListTypeDef) => LLM;
|
|
3621
|
+
/**
|
|
3622
|
+
* swap out the llm model
|
|
3623
|
+
* @param model The model to use
|
|
3624
|
+
*/
|
|
3625
|
+
withModel: (model: string) => LLM;
|
|
3626
|
+
/**
|
|
3627
|
+
* Set a variable of type Module in the llm environment
|
|
3628
|
+
* @param value The Module value to assign to the variable
|
|
3629
|
+
* @deprecated use set<TargetType> instead
|
|
3630
|
+
*/
|
|
3631
|
+
withModule: (value: Module_) => LLM;
|
|
3632
|
+
/**
|
|
3633
|
+
* Set a variable of type ModuleConfigClient in the llm environment
|
|
3634
|
+
* @param value The ModuleConfigClient value to assign to the variable
|
|
3635
|
+
* @deprecated use set<TargetType> instead
|
|
3636
|
+
*/
|
|
3637
|
+
withModuleConfigClient: (value: ModuleConfigClient) => LLM;
|
|
3638
|
+
/**
|
|
3639
|
+
* Set a variable of type ModuleSource in the llm environment
|
|
3640
|
+
* @param value The ModuleSource value to assign to the variable
|
|
3641
|
+
* @deprecated use set<TargetType> instead
|
|
3642
|
+
*/
|
|
3643
|
+
withModuleSource: (value: ModuleSource) => LLM;
|
|
3644
|
+
/**
|
|
3645
|
+
* Set a variable of type ObjectTypeDef in the llm environment
|
|
3646
|
+
* @param value The ObjectTypeDef value to assign to the variable
|
|
3647
|
+
* @deprecated use set<TargetType> instead
|
|
3648
|
+
*/
|
|
3649
|
+
withObjectTypeDef: (value: ObjectTypeDef) => LLM;
|
|
3650
|
+
/**
|
|
3651
|
+
* append a prompt to the llm context
|
|
3652
|
+
* @param prompt The prompt to send
|
|
3653
|
+
*/
|
|
3654
|
+
withPrompt: (prompt: string) => LLM;
|
|
3655
|
+
/**
|
|
3656
|
+
* append the contents of a file to the llm context
|
|
3657
|
+
* @param file The file to read the prompt from
|
|
3658
|
+
*/
|
|
3659
|
+
withPromptFile: (file: File) => LLM;
|
|
3660
|
+
/**
|
|
3661
|
+
* Add a string variable to the LLM's environment
|
|
3662
|
+
* @param name The variable name
|
|
3663
|
+
* @param value The variable value
|
|
3664
|
+
*/
|
|
3665
|
+
withPromptVar: (name: string, value: string) => LLM;
|
|
3666
|
+
/**
|
|
3667
|
+
* Set a variable of type SDKConfig in the llm environment
|
|
3668
|
+
* @param value The SDKConfig value to assign to the variable
|
|
3669
|
+
* @deprecated use set<TargetType> instead
|
|
3670
|
+
*/
|
|
3671
|
+
withSDKConfig: (value: SDKConfig) => LLM;
|
|
3672
|
+
/**
|
|
3673
|
+
* Set a variable of type ScalarTypeDef in the llm environment
|
|
3674
|
+
* @param value The ScalarTypeDef value to assign to the variable
|
|
3675
|
+
* @deprecated use set<TargetType> instead
|
|
3676
|
+
*/
|
|
3677
|
+
withScalarTypeDef: (value: ScalarTypeDef) => LLM;
|
|
3678
|
+
/**
|
|
3679
|
+
* Set a variable of type Secret in the llm environment
|
|
3680
|
+
* @param value The Secret value to assign to the variable
|
|
3681
|
+
* @deprecated use set<TargetType> instead
|
|
3682
|
+
*/
|
|
3683
|
+
withSecret: (value: Secret) => LLM;
|
|
3684
|
+
/**
|
|
3685
|
+
* Set a variable of type Service in the llm environment
|
|
3686
|
+
* @param value The Service value to assign to the variable
|
|
3687
|
+
* @deprecated use set<TargetType> instead
|
|
3688
|
+
*/
|
|
3689
|
+
withService: (value: Service) => LLM;
|
|
3690
|
+
/**
|
|
3691
|
+
* Set a variable of type Socket in the llm environment
|
|
3692
|
+
* @param value The Socket value to assign to the variable
|
|
3693
|
+
* @deprecated use set<TargetType> instead
|
|
3694
|
+
*/
|
|
3695
|
+
withSocket: (value: Socket) => LLM;
|
|
3696
|
+
/**
|
|
3697
|
+
* Set a variable of type SourceMap in the llm environment
|
|
3698
|
+
* @param value The SourceMap value to assign to the variable
|
|
3699
|
+
* @deprecated use set<TargetType> instead
|
|
3700
|
+
*/
|
|
3701
|
+
withSourceMap: (value: SourceMap) => LLM;
|
|
3702
|
+
/**
|
|
3703
|
+
* Set a variable of type Terminal in the llm environment
|
|
3704
|
+
* @param value The Terminal value to assign to the variable
|
|
3705
|
+
* @deprecated use set<TargetType> instead
|
|
3706
|
+
*/
|
|
3707
|
+
withTerminal: (value: Terminal) => LLM;
|
|
3708
|
+
/**
|
|
3709
|
+
* Set a variable of type TypeDef in the llm environment
|
|
3710
|
+
* @param value The TypeDef value to assign to the variable
|
|
3711
|
+
* @deprecated use set<TargetType> instead
|
|
3712
|
+
*/
|
|
3713
|
+
withTypeDef: (value: TypeDef) => LLM;
|
|
3714
|
+
/**
|
|
3715
|
+
* Call the provided function with current LLM.
|
|
3716
|
+
*
|
|
3717
|
+
* This is useful for reusability and readability by not breaking the calling chain.
|
|
3718
|
+
*/
|
|
3719
|
+
with: (arg: (param: LLM) => LLM) => LLM;
|
|
3720
|
+
}
|
|
3721
|
+
export declare class LLMVariable extends BaseClient {
|
|
3722
|
+
private readonly _id?;
|
|
3723
|
+
private readonly _hash?;
|
|
3724
|
+
private readonly _name?;
|
|
3725
|
+
private readonly _typeName?;
|
|
3726
|
+
/**
|
|
3727
|
+
* Constructor is used for internal usage only, do not create object from it.
|
|
3728
|
+
*/
|
|
3729
|
+
constructor(ctx?: Context, _id?: LLMVariableID, _hash?: string, _name?: string, _typeName?: string);
|
|
3730
|
+
/**
|
|
3731
|
+
* A unique identifier for this LLMVariable.
|
|
3732
|
+
*/
|
|
3733
|
+
id: () => Promise<LLMVariableID>;
|
|
3734
|
+
hash: () => Promise<string>;
|
|
3735
|
+
name: () => Promise<string>;
|
|
3736
|
+
typeName: () => Promise<string>;
|
|
3737
|
+
}
|
|
2837
3738
|
/**
|
|
2838
3739
|
* A simple key value object that represents a label.
|
|
2839
3740
|
*/
|
|
@@ -3361,6 +4262,12 @@ export declare class Client extends BaseClient {
|
|
|
3361
4262
|
* @param opts.experimentalServiceHost A service which must be started before the URL is fetched.
|
|
3362
4263
|
*/
|
|
3363
4264
|
http: (url: string, opts?: ClientHttpOpts) => File;
|
|
4265
|
+
/**
|
|
4266
|
+
* Initialize a Large Language Model (LLM)
|
|
4267
|
+
* @param opts.model Model to use
|
|
4268
|
+
* @param opts.maxAPICalls Cap the number of API calls for this LLM
|
|
4269
|
+
*/
|
|
4270
|
+
llm: (opts?: ClientLlmOpts) => LLM;
|
|
3364
4271
|
/**
|
|
3365
4272
|
* Load a CacheVolume from its ID.
|
|
3366
4273
|
*/
|
|
@@ -3409,6 +4316,10 @@ export declare class Client extends BaseClient {
|
|
|
3409
4316
|
* Load a Error from its ID.
|
|
3410
4317
|
*/
|
|
3411
4318
|
loadErrorFromID: (id: ErrorID) => Error;
|
|
4319
|
+
/**
|
|
4320
|
+
* Load a ErrorValue from its ID.
|
|
4321
|
+
*/
|
|
4322
|
+
loadErrorValueFromID: (id: ErrorValueID) => ErrorValue;
|
|
3412
4323
|
/**
|
|
3413
4324
|
* Load a FieldTypeDef from its ID.
|
|
3414
4325
|
*/
|
|
@@ -3457,6 +4368,14 @@ export declare class Client extends BaseClient {
|
|
|
3457
4368
|
* Load a InterfaceTypeDef from its ID.
|
|
3458
4369
|
*/
|
|
3459
4370
|
loadInterfaceTypeDefFromID: (id: InterfaceTypeDefID) => InterfaceTypeDef;
|
|
4371
|
+
/**
|
|
4372
|
+
* Load a LLM from its ID.
|
|
4373
|
+
*/
|
|
4374
|
+
loadLLMFromID: (id: LLMID) => LLM;
|
|
4375
|
+
/**
|
|
4376
|
+
* Load a LLMVariable from its ID.
|
|
4377
|
+
*/
|
|
4378
|
+
loadLLMVariableFromID: (id: LLMVariableID) => LLMVariable;
|
|
3460
4379
|
/**
|
|
3461
4380
|
* Load a Label from its ID.
|
|
3462
4381
|
*/
|