@dagger.io/dagger 0.17.1 → 0.18.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.
@@ -14,6 +14,12 @@ declare class BaseClient {
14
14
  */
15
15
  constructor(_ctx?: Context);
16
16
  }
17
+ /**
18
+ * The `BindingID` scalar type represents an identifier for an object of type Binding.
19
+ */
20
+ export type BindingID = string & {
21
+ __BindingID: never;
22
+ };
17
23
  export type BuildArg = {
18
24
  /**
19
25
  * The build argument name.
@@ -615,6 +621,16 @@ export type DirectoryExportOpts = {
615
621
  */
616
622
  wipe?: boolean;
617
623
  };
624
+ export type DirectoryFilterOpts = {
625
+ /**
626
+ * Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
627
+ */
628
+ exclude?: string[];
629
+ /**
630
+ * Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
631
+ */
632
+ include?: string[];
633
+ };
618
634
  export type DirectoryTerminalOpts = {
619
635
  /**
620
636
  * If set, override the container's default terminal command and invoke these command arguments instead.
@@ -714,6 +730,12 @@ export type EnumTypeDefID = string & {
714
730
  export type EnumValueTypeDefID = string & {
715
731
  __EnumValueTypeDefID: never;
716
732
  };
733
+ /**
734
+ * The `EnvID` scalar type represents an identifier for an object of type Env.
735
+ */
736
+ export type EnvID = string & {
737
+ __EnvID: never;
738
+ };
717
739
  /**
718
740
  * The `EnvVariableID` scalar type represents an identifier for an object of type EnvVariable.
719
741
  */
@@ -918,10 +940,10 @@ export type LLMID = string & {
918
940
  __LLMID: never;
919
941
  };
920
942
  /**
921
- * The `LLMVariableID` scalar type represents an identifier for an object of type LLMVariable.
943
+ * The `LLMTokenUsageID` scalar type represents an identifier for an object of type LLMTokenUsage.
922
944
  */
923
- export type LLMVariableID = string & {
924
- __LLMVariableID: never;
945
+ export type LLMTokenUsageID = string & {
946
+ __LLMTokenUsageID: never;
925
947
  };
926
948
  /**
927
949
  * The `LabelID` scalar type represents an identifier for an object of type Label.
@@ -1289,6 +1311,88 @@ export type __TypeEnumValuesOpts = {
1289
1311
  export type __TypeFieldsOpts = {
1290
1312
  includeDeprecated?: boolean;
1291
1313
  };
1314
+ export declare class Binding extends BaseClient {
1315
+ private readonly _id?;
1316
+ private readonly _digest?;
1317
+ private readonly _name?;
1318
+ private readonly _typeName?;
1319
+ /**
1320
+ * Constructor is used for internal usage only, do not create object from it.
1321
+ */
1322
+ constructor(ctx?: Context, _id?: BindingID, _digest?: string, _name?: string, _typeName?: string);
1323
+ /**
1324
+ * A unique identifier for this Binding.
1325
+ */
1326
+ id: () => Promise<BindingID>;
1327
+ /**
1328
+ * Retrieve the binding value, as type CacheVolume
1329
+ */
1330
+ asCacheVolume: () => CacheVolume;
1331
+ /**
1332
+ * Retrieve the binding value, as type Container
1333
+ */
1334
+ asContainer: () => Container;
1335
+ /**
1336
+ * Retrieve the binding value, as type Directory
1337
+ */
1338
+ asDirectory: () => Directory;
1339
+ /**
1340
+ * Retrieve the binding value, as type Env
1341
+ */
1342
+ asEnv: () => Env;
1343
+ /**
1344
+ * Retrieve the binding value, as type File
1345
+ */
1346
+ asFile: () => File;
1347
+ /**
1348
+ * Retrieve the binding value, as type GitRef
1349
+ */
1350
+ asGitRef: () => GitRef;
1351
+ /**
1352
+ * Retrieve the binding value, as type GitRepository
1353
+ */
1354
+ asGitRepository: () => GitRepository;
1355
+ /**
1356
+ * Retrieve the binding value, as type LLM
1357
+ */
1358
+ asLLM: () => LLM;
1359
+ /**
1360
+ * Retrieve the binding value, as type Module
1361
+ */
1362
+ asModule: () => Module_;
1363
+ /**
1364
+ * Retrieve the binding value, as type ModuleConfigClient
1365
+ */
1366
+ asModuleConfigClient: () => ModuleConfigClient;
1367
+ /**
1368
+ * Retrieve the binding value, as type ModuleSource
1369
+ */
1370
+ asModuleSource: () => ModuleSource;
1371
+ /**
1372
+ * Retrieve the binding value, as type Secret
1373
+ */
1374
+ asSecret: () => Secret;
1375
+ /**
1376
+ * Retrieve the binding value, as type Service
1377
+ */
1378
+ asService: () => Service;
1379
+ /**
1380
+ * Retrieve the binding value, as type Socket
1381
+ */
1382
+ asSocket: () => Socket;
1383
+ /**
1384
+ * The digest of the binding value
1385
+ */
1386
+ digest: () => Promise<string>;
1387
+ /**
1388
+ * The binding name
1389
+ */
1390
+ name: () => Promise<string>;
1391
+ /**
1392
+ * The binding type
1393
+ */
1394
+ typeName: () => Promise<string>;
1395
+ }
1292
1396
  /**
1293
1397
  * A directory whose contents persist across runs.
1294
1398
  */
@@ -2014,6 +2118,12 @@ export declare class Directory extends BaseClient {
2014
2118
  * @param path Location of the file to retrieve (e.g., "README.md").
2015
2119
  */
2016
2120
  file: (path: string) => File;
2121
+ /**
2122
+ * Retrieves this directory as per exclude/include filters.
2123
+ * @param opts.exclude Exclude artifacts that match the given pattern (e.g., ["node_modules/", ".git*"]).
2124
+ * @param opts.include Include only artifacts that match the given pattern (e.g., ["app/", "package.*"]).
2125
+ */
2126
+ filter: (opts?: DirectoryFilterOpts) => Directory;
2017
2127
  /**
2018
2128
  * Returns a list of files and directories that matche the given pattern.
2019
2129
  * @param pattern Pattern to match (e.g., "*.md").
@@ -2292,6 +2402,227 @@ export declare class EnumValueTypeDef extends BaseClient {
2292
2402
  */
2293
2403
  sourceMap: () => SourceMap;
2294
2404
  }
2405
+ export declare class Env extends BaseClient {
2406
+ private readonly _id?;
2407
+ /**
2408
+ * Constructor is used for internal usage only, do not create object from it.
2409
+ */
2410
+ constructor(ctx?: Context, _id?: EnvID);
2411
+ /**
2412
+ * A unique identifier for this Env.
2413
+ */
2414
+ id: () => Promise<EnvID>;
2415
+ /**
2416
+ * retrieve an input value by name
2417
+ */
2418
+ input: (name: string) => Binding;
2419
+ /**
2420
+ * return all input values for the environment
2421
+ */
2422
+ inputs: () => Promise<Binding[]>;
2423
+ /**
2424
+ * retrieve an output value by name
2425
+ */
2426
+ output: (name: string) => Binding;
2427
+ /**
2428
+ * return all output values for the environment
2429
+ */
2430
+ outputs: () => Promise<Binding[]>;
2431
+ /**
2432
+ * Create or update a binding of type CacheVolume in the environment
2433
+ * @param name The name of the binding
2434
+ * @param value The CacheVolume value to assign to the binding
2435
+ * @param description The purpose of the input
2436
+ */
2437
+ withCacheVolumeInput: (name: string, value: CacheVolume, description: string) => Env;
2438
+ /**
2439
+ * Declare a desired CacheVolume output to be assigned in the environment
2440
+ * @param name The name of the binding
2441
+ * @param description A description of the desired value of the binding
2442
+ */
2443
+ withCacheVolumeOutput: (name: string, description: string) => Env;
2444
+ /**
2445
+ * Create or update a binding of type Container in the environment
2446
+ * @param name The name of the binding
2447
+ * @param value The Container value to assign to the binding
2448
+ * @param description The purpose of the input
2449
+ */
2450
+ withContainerInput: (name: string, value: Container, description: string) => Env;
2451
+ /**
2452
+ * Declare a desired Container output to be assigned in the environment
2453
+ * @param name The name of the binding
2454
+ * @param description A description of the desired value of the binding
2455
+ */
2456
+ withContainerOutput: (name: string, description: string) => Env;
2457
+ /**
2458
+ * Create or update a binding of type Directory in the environment
2459
+ * @param name The name of the binding
2460
+ * @param value The Directory value to assign to the binding
2461
+ * @param description The purpose of the input
2462
+ */
2463
+ withDirectoryInput: (name: string, value: Directory, description: string) => Env;
2464
+ /**
2465
+ * Declare a desired Directory output to be assigned in the environment
2466
+ * @param name The name of the binding
2467
+ * @param description A description of the desired value of the binding
2468
+ */
2469
+ withDirectoryOutput: (name: string, description: string) => Env;
2470
+ /**
2471
+ * Create or update a binding of type Env in the environment
2472
+ * @param name The name of the binding
2473
+ * @param value The Env value to assign to the binding
2474
+ * @param description The purpose of the input
2475
+ */
2476
+ withEnvInput: (name: string, value: Env, description: string) => Env;
2477
+ /**
2478
+ * Declare a desired Env output to be assigned in the environment
2479
+ * @param name The name of the binding
2480
+ * @param description A description of the desired value of the binding
2481
+ */
2482
+ withEnvOutput: (name: string, description: string) => Env;
2483
+ /**
2484
+ * Create or update a binding of type File in the environment
2485
+ * @param name The name of the binding
2486
+ * @param value The File value to assign to the binding
2487
+ * @param description The purpose of the input
2488
+ */
2489
+ withFileInput: (name: string, value: File, description: string) => Env;
2490
+ /**
2491
+ * Declare a desired File output to be assigned in the environment
2492
+ * @param name The name of the binding
2493
+ * @param description A description of the desired value of the binding
2494
+ */
2495
+ withFileOutput: (name: string, description: string) => Env;
2496
+ /**
2497
+ * Create or update a binding of type GitRef in the environment
2498
+ * @param name The name of the binding
2499
+ * @param value The GitRef value to assign to the binding
2500
+ * @param description The purpose of the input
2501
+ */
2502
+ withGitRefInput: (name: string, value: GitRef, description: string) => Env;
2503
+ /**
2504
+ * Declare a desired GitRef output to be assigned in the environment
2505
+ * @param name The name of the binding
2506
+ * @param description A description of the desired value of the binding
2507
+ */
2508
+ withGitRefOutput: (name: string, description: string) => Env;
2509
+ /**
2510
+ * Create or update a binding of type GitRepository in the environment
2511
+ * @param name The name of the binding
2512
+ * @param value The GitRepository value to assign to the binding
2513
+ * @param description The purpose of the input
2514
+ */
2515
+ withGitRepositoryInput: (name: string, value: GitRepository, description: string) => Env;
2516
+ /**
2517
+ * Declare a desired GitRepository output to be assigned in the environment
2518
+ * @param name The name of the binding
2519
+ * @param description A description of the desired value of the binding
2520
+ */
2521
+ withGitRepositoryOutput: (name: string, description: string) => Env;
2522
+ /**
2523
+ * Create or update a binding of type LLM in the environment
2524
+ * @param name The name of the binding
2525
+ * @param value The LLM value to assign to the binding
2526
+ * @param description The purpose of the input
2527
+ */
2528
+ withLLMInput: (name: string, value: LLM, description: string) => Env;
2529
+ /**
2530
+ * Declare a desired LLM output to be assigned in the environment
2531
+ * @param name The name of the binding
2532
+ * @param description A description of the desired value of the binding
2533
+ */
2534
+ withLLMOutput: (name: string, description: string) => Env;
2535
+ /**
2536
+ * Create or update a binding of type ModuleConfigClient in the environment
2537
+ * @param name The name of the binding
2538
+ * @param value The ModuleConfigClient value to assign to the binding
2539
+ * @param description The purpose of the input
2540
+ */
2541
+ withModuleConfigClientInput: (name: string, value: ModuleConfigClient, description: string) => Env;
2542
+ /**
2543
+ * Declare a desired ModuleConfigClient output to be assigned in the environment
2544
+ * @param name The name of the binding
2545
+ * @param description A description of the desired value of the binding
2546
+ */
2547
+ withModuleConfigClientOutput: (name: string, description: string) => Env;
2548
+ /**
2549
+ * Create or update a binding of type Module in the environment
2550
+ * @param name The name of the binding
2551
+ * @param value The Module value to assign to the binding
2552
+ * @param description The purpose of the input
2553
+ */
2554
+ withModuleInput: (name: string, value: Module_, description: string) => Env;
2555
+ /**
2556
+ * Declare a desired Module output to be assigned in the environment
2557
+ * @param name The name of the binding
2558
+ * @param description A description of the desired value of the binding
2559
+ */
2560
+ withModuleOutput: (name: string, description: string) => Env;
2561
+ /**
2562
+ * Create or update a binding of type ModuleSource in the environment
2563
+ * @param name The name of the binding
2564
+ * @param value The ModuleSource value to assign to the binding
2565
+ * @param description The purpose of the input
2566
+ */
2567
+ withModuleSourceInput: (name: string, value: ModuleSource, description: string) => Env;
2568
+ /**
2569
+ * Declare a desired ModuleSource output to be assigned in the environment
2570
+ * @param name The name of the binding
2571
+ * @param description A description of the desired value of the binding
2572
+ */
2573
+ withModuleSourceOutput: (name: string, description: string) => Env;
2574
+ /**
2575
+ * Create or update a binding of type Secret in the environment
2576
+ * @param name The name of the binding
2577
+ * @param value The Secret value to assign to the binding
2578
+ * @param description The purpose of the input
2579
+ */
2580
+ withSecretInput: (name: string, value: Secret, description: string) => Env;
2581
+ /**
2582
+ * Declare a desired Secret output to be assigned in the environment
2583
+ * @param name The name of the binding
2584
+ * @param description A description of the desired value of the binding
2585
+ */
2586
+ withSecretOutput: (name: string, description: string) => Env;
2587
+ /**
2588
+ * Create or update a binding of type Service in the environment
2589
+ * @param name The name of the binding
2590
+ * @param value The Service value to assign to the binding
2591
+ * @param description The purpose of the input
2592
+ */
2593
+ withServiceInput: (name: string, value: Service, description: string) => Env;
2594
+ /**
2595
+ * Declare a desired Service output to be assigned in the environment
2596
+ * @param name The name of the binding
2597
+ * @param description A description of the desired value of the binding
2598
+ */
2599
+ withServiceOutput: (name: string, description: string) => Env;
2600
+ /**
2601
+ * Create or update a binding of type Socket in the environment
2602
+ * @param name The name of the binding
2603
+ * @param value The Socket value to assign to the binding
2604
+ * @param description The purpose of the input
2605
+ */
2606
+ withSocketInput: (name: string, value: Socket, description: string) => Env;
2607
+ /**
2608
+ * Declare a desired Socket output to be assigned in the environment
2609
+ * @param name The name of the binding
2610
+ * @param description A description of the desired value of the binding
2611
+ */
2612
+ withSocketOutput: (name: string, description: string) => Env;
2613
+ /**
2614
+ * Create or update an input value of type string
2615
+ * @param name The name of the binding
2616
+ * @param value The string value to assign to the binding
2617
+ */
2618
+ withStringInput: (name: string, value: string, description: string) => Env;
2619
+ /**
2620
+ * Call the provided function with current Env.
2621
+ *
2622
+ * This is useful for reusability and readability by not breaking the calling chain.
2623
+ */
2624
+ with: (arg: (param: Env) => Env) => Env;
2625
+ }
2295
2626
  /**
2296
2627
  * An environment variable name and value.
2297
2628
  */
@@ -2901,8 +3232,6 @@ export declare class InterfaceTypeDef extends BaseClient {
2901
3232
  }
2902
3233
  export declare class LLM extends BaseClient {
2903
3234
  private readonly _id?;
2904
- private readonly _currentType?;
2905
- private readonly _getString?;
2906
3235
  private readonly _historyJSON?;
2907
3236
  private readonly _lastReply?;
2908
3237
  private readonly _model?;
@@ -2912,253 +3241,23 @@ export declare class LLM extends BaseClient {
2912
3241
  /**
2913
3242
  * Constructor is used for internal usage only, do not create object from it.
2914
3243
  */
2915
- constructor(ctx?: Context, _id?: LLMID, _currentType?: string, _getString?: string, _historyJSON?: string, _lastReply?: string, _model?: string, _provider?: string, _sync?: LLMID, _tools?: string);
3244
+ constructor(ctx?: Context, _id?: LLMID, _historyJSON?: string, _lastReply?: string, _model?: string, _provider?: string, _sync?: LLMID, _tools?: string);
2916
3245
  /**
2917
3246
  * A unique identifier for this LLM.
2918
3247
  */
2919
3248
  id: () => Promise<LLMID>;
2920
3249
  /**
2921
- * Retrieve a the current value in the LLM environment, of type CacheVolume
2922
- */
2923
- cacheVolume: () => CacheVolume;
2924
- /**
2925
- * Retrieve a the current value in the LLM environment, of type Container
3250
+ * create a branch in the LLM's history
2926
3251
  */
2927
- container: () => Container;
2928
- /**
2929
- * Retrieve a the current value in the LLM environment, of type CurrentModule
2930
- */
2931
- currentModule: () => CurrentModule;
3252
+ attempt: (number_: number) => LLM;
2932
3253
  /**
2933
3254
  * returns the type of the current state
2934
3255
  */
2935
- currentType: () => Promise<string>;
2936
- /**
2937
- * Retrieve a the current value in the LLM environment, of type Directory
2938
- */
2939
- directory: () => Directory;
2940
- /**
2941
- * Retrieve a the current value in the LLM environment, of type EnumTypeDef
2942
- */
2943
- enumTypeDef: () => EnumTypeDef;
2944
- /**
2945
- * Retrieve a the current value in the LLM environment, of type EnumValueTypeDef
2946
- */
2947
- enumValueTypeDef: () => EnumValueTypeDef;
2948
- /**
2949
- * Retrieve a the current value in the LLM environment, of type Error
2950
- */
2951
- error: () => Error;
2952
- /**
2953
- * Retrieve a the current value in the LLM environment, of type ErrorValue
2954
- */
2955
- errorValue: () => ErrorValue;
2956
- /**
2957
- * Retrieve a the current value in the LLM environment, of type FieldTypeDef
2958
- */
2959
- fieldTypeDef: () => FieldTypeDef;
2960
- /**
2961
- * Retrieve a the current value in the LLM environment, of type File
2962
- */
2963
- file: () => File;
2964
- /**
2965
- * Retrieve a the current value in the LLM environment, of type Function
2966
- */
2967
- function_: () => Function_;
2968
- /**
2969
- * Retrieve a the current value in the LLM environment, of type FunctionArg
2970
- */
2971
- functionArg: () => FunctionArg;
2972
- /**
2973
- * Retrieve a the current value in the LLM environment, of type FunctionCall
2974
- */
2975
- functionCall: () => FunctionCall;
2976
- /**
2977
- * Retrieve a the current value in the LLM environment, of type FunctionCallArgValue
2978
- */
2979
- functionCallArgValue: () => FunctionCallArgValue;
2980
- /**
2981
- * Retrieve a the current value in the LLM environment, of type GeneratedCode
2982
- */
2983
- generatedCode: () => GeneratedCode;
2984
- /**
2985
- * Retrieve a variable in the llm environment, of type CacheVolume
2986
- * @param name The name of the variable
2987
- */
2988
- getCacheVolume: (name: string) => CacheVolume;
2989
- /**
2990
- * Retrieve a variable in the llm environment, of type Container
2991
- * @param name The name of the variable
2992
- */
2993
- getContainer: (name: string) => Container;
2994
- /**
2995
- * Retrieve a variable in the llm environment, of type CurrentModule
2996
- * @param name The name of the variable
2997
- */
2998
- getCurrentModule: (name: string) => CurrentModule;
2999
- /**
3000
- * Retrieve a variable in the llm environment, of type Directory
3001
- * @param name The name of the variable
3002
- */
3003
- getDirectory: (name: string) => Directory;
3004
- /**
3005
- * Retrieve a variable in the llm environment, of type EnumTypeDef
3006
- * @param name The name of the variable
3007
- */
3008
- getEnumTypeDef: (name: string) => EnumTypeDef;
3009
- /**
3010
- * Retrieve a variable in the llm environment, of type EnumValueTypeDef
3011
- * @param name The name of the variable
3012
- */
3013
- getEnumValueTypeDef: (name: string) => EnumValueTypeDef;
3014
- /**
3015
- * Retrieve a variable in the llm environment, of type Error
3016
- * @param name The name of the variable
3017
- */
3018
- getError: (name: string) => Error;
3019
- /**
3020
- * Retrieve a variable in the llm environment, of type ErrorValue
3021
- * @param name The name of the variable
3022
- */
3023
- getErrorValue: (name: string) => ErrorValue;
3024
- /**
3025
- * Retrieve a variable in the llm environment, of type FieldTypeDef
3026
- * @param name The name of the variable
3027
- */
3028
- getFieldTypeDef: (name: string) => FieldTypeDef;
3029
- /**
3030
- * Retrieve a variable in the llm environment, of type File
3031
- * @param name The name of the variable
3032
- */
3033
- getFile: (name: string) => File;
3034
- /**
3035
- * Retrieve a variable in the llm environment, of type Function
3036
- * @param name The name of the variable
3037
- */
3038
- getFunction: (name: string) => Function_;
3039
- /**
3040
- * Retrieve a variable in the llm environment, of type FunctionArg
3041
- * @param name The name of the variable
3042
- */
3043
- getFunctionArg: (name: string) => FunctionArg;
3044
- /**
3045
- * Retrieve a variable in the llm environment, of type FunctionCall
3046
- * @param name The name of the variable
3047
- */
3048
- getFunctionCall: (name: string) => FunctionCall;
3049
- /**
3050
- * Retrieve a variable in the llm environment, of type FunctionCallArgValue
3051
- * @param name The name of the variable
3052
- */
3053
- getFunctionCallArgValue: (name: string) => FunctionCallArgValue;
3054
- /**
3055
- * Retrieve a variable in the llm environment, of type GeneratedCode
3056
- * @param name The name of the variable
3057
- */
3058
- getGeneratedCode: (name: string) => GeneratedCode;
3059
- /**
3060
- * Retrieve a variable in the llm environment, of type GitRef
3061
- * @param name The name of the variable
3062
- */
3063
- getGitRef: (name: string) => GitRef;
3064
- /**
3065
- * Retrieve a variable in the llm environment, of type GitRepository
3066
- * @param name The name of the variable
3067
- */
3068
- getGitRepository: (name: string) => GitRepository;
3069
- /**
3070
- * Retrieve a variable in the llm environment, of type InputTypeDef
3071
- * @param name The name of the variable
3072
- */
3073
- getInputTypeDef: (name: string) => InputTypeDef;
3074
- /**
3075
- * Retrieve a variable in the llm environment, of type InterfaceTypeDef
3076
- * @param name The name of the variable
3077
- */
3078
- getInterfaceTypeDef: (name: string) => InterfaceTypeDef;
3256
+ bindResult: (name: string) => Binding;
3079
3257
  /**
3080
- * Retrieve a variable in the llm environment, of type LLM
3081
- * @param name The name of the variable
3258
+ * return the LLM's current environment
3082
3259
  */
3083
- getLLM: (name: string) => LLM;
3084
- /**
3085
- * Retrieve a variable in the llm environment, of type ListTypeDef
3086
- * @param name The name of the variable
3087
- */
3088
- getListTypeDef: (name: string) => ListTypeDef;
3089
- /**
3090
- * Retrieve a variable in the llm environment, of type Module
3091
- * @param name The name of the variable
3092
- */
3093
- getModule: (name: string) => Module_;
3094
- /**
3095
- * Retrieve a variable in the llm environment, of type ModuleConfigClient
3096
- * @param name The name of the variable
3097
- */
3098
- getModuleConfigClient: (name: string) => ModuleConfigClient;
3099
- /**
3100
- * Retrieve a variable in the llm environment, of type ModuleSource
3101
- * @param name The name of the variable
3102
- */
3103
- getModuleSource: (name: string) => ModuleSource;
3104
- /**
3105
- * Retrieve a variable in the llm environment, of type ObjectTypeDef
3106
- * @param name The name of the variable
3107
- */
3108
- getObjectTypeDef: (name: string) => ObjectTypeDef;
3109
- /**
3110
- * Retrieve a variable in the llm environment, of type SDKConfig
3111
- * @param name The name of the variable
3112
- */
3113
- getSDKConfig: (name: string) => SDKConfig;
3114
- /**
3115
- * Retrieve a variable in the llm environment, of type ScalarTypeDef
3116
- * @param name The name of the variable
3117
- */
3118
- getScalarTypeDef: (name: string) => ScalarTypeDef;
3119
- /**
3120
- * Retrieve a variable in the llm environment, of type Secret
3121
- * @param name The name of the variable
3122
- */
3123
- getSecret: (name: string) => Secret;
3124
- /**
3125
- * Retrieve a variable in the llm environment, of type Service
3126
- * @param name The name of the variable
3127
- */
3128
- getService: (name: string) => Service;
3129
- /**
3130
- * Retrieve a variable in the llm environment, of type Socket
3131
- * @param name The name of the variable
3132
- */
3133
- getSocket: (name: string) => Socket;
3134
- /**
3135
- * Retrieve a variable in the llm environment, of type SourceMap
3136
- * @param name The name of the variable
3137
- */
3138
- getSourceMap: (name: string) => SourceMap;
3139
- /**
3140
- * Get a string variable from the LLM's environment
3141
- * @param name The variable name
3142
- */
3143
- getString: (name: string) => Promise<string>;
3144
- /**
3145
- * Retrieve a variable in the llm environment, of type Terminal
3146
- * @param name The name of the variable
3147
- */
3148
- getTerminal: (name: string) => Terminal;
3149
- /**
3150
- * Retrieve a variable in the llm environment, of type TypeDef
3151
- * @param name The name of the variable
3152
- */
3153
- getTypeDef: (name: string) => TypeDef;
3154
- /**
3155
- * Retrieve a the current value in the LLM environment, of type GitRef
3156
- */
3157
- gitRef: () => GitRef;
3158
- /**
3159
- * Retrieve a the current value in the LLM environment, of type GitRepository
3160
- */
3161
- gitRepository: () => GitRepository;
3260
+ env: () => Env;
3162
3261
  /**
3163
3262
  * return the llm message history
3164
3263
  */
@@ -3167,26 +3266,10 @@ export declare class LLM extends BaseClient {
3167
3266
  * return the raw llm message history as json
3168
3267
  */
3169
3268
  historyJSON: () => Promise<string>;
3170
- /**
3171
- * Retrieve a the current value in the LLM environment, of type InputTypeDef
3172
- */
3173
- inputTypeDef: () => InputTypeDef;
3174
- /**
3175
- * Retrieve a the current value in the LLM environment, of type InterfaceTypeDef
3176
- */
3177
- interfaceTypeDef: () => InterfaceTypeDef;
3178
- /**
3179
- * Retrieve a the current value in the LLM environment, of type LLM
3180
- */
3181
- lLM: () => LLM;
3182
3269
  /**
3183
3270
  * return the last llm reply from the history
3184
3271
  */
3185
3272
  lastReply: () => Promise<string>;
3186
- /**
3187
- * Retrieve a the current value in the LLM environment, of type ListTypeDef
3188
- */
3189
- listTypeDef: () => ListTypeDef;
3190
3273
  /**
3191
3274
  * synchronize LLM state
3192
3275
  */
@@ -3195,404 +3278,31 @@ export declare class LLM extends BaseClient {
3195
3278
  * return the model used by the llm
3196
3279
  */
3197
3280
  model: () => Promise<string>;
3198
- /**
3199
- * Retrieve a the current value in the LLM environment, of type Module
3200
- */
3201
- module_: () => Module_;
3202
- /**
3203
- * Retrieve a the current value in the LLM environment, of type ModuleConfigClient
3204
- */
3205
- moduleConfigClient: () => ModuleConfigClient;
3206
- /**
3207
- * Retrieve a the current value in the LLM environment, of type ModuleSource
3208
- */
3209
- moduleSource: () => ModuleSource;
3210
- /**
3211
- * Retrieve a the current value in the LLM environment, of type ObjectTypeDef
3212
- */
3213
- objectTypeDef: () => ObjectTypeDef;
3214
3281
  /**
3215
3282
  * return the provider used by the llm
3216
3283
  */
3217
3284
  provider: () => Promise<string>;
3218
- /**
3219
- * Retrieve a the current value in the LLM environment, of type ScalarTypeDef
3220
- */
3221
- scalarTypeDef: () => ScalarTypeDef;
3222
- /**
3223
- * Retrieve a the current value in the LLM environment, of type SDKConfig
3224
- */
3225
- sdkconfig: () => SDKConfig;
3226
- /**
3227
- * Retrieve a the current value in the LLM environment, of type Secret
3228
- */
3229
- secret: () => Secret;
3230
- /**
3231
- * Retrieve a the current value in the LLM environment, of type Service
3232
- */
3233
- service: () => Service;
3234
- /**
3235
- * Set a variable of type CacheVolume in the llm environment
3236
- * @param name The name of the variable
3237
- * @param value The CacheVolume value to assign to the variable
3238
- */
3239
- setCacheVolume: (name: string, value: CacheVolume) => LLM;
3240
- /**
3241
- * Set a variable of type Container in the llm environment
3242
- * @param name The name of the variable
3243
- * @param value The Container value to assign to the variable
3244
- */
3245
- setContainer: (name: string, value: Container) => LLM;
3246
- /**
3247
- * Set a variable of type CurrentModule in the llm environment
3248
- * @param name The name of the variable
3249
- * @param value The CurrentModule value to assign to the variable
3250
- */
3251
- setCurrentModule: (name: string, value: CurrentModule) => LLM;
3252
- /**
3253
- * Set a variable of type Directory in the llm environment
3254
- * @param name The name of the variable
3255
- * @param value The Directory value to assign to the variable
3256
- */
3257
- setDirectory: (name: string, value: Directory) => LLM;
3258
- /**
3259
- * Set a variable of type EnumTypeDef in the llm environment
3260
- * @param name The name of the variable
3261
- * @param value The EnumTypeDef value to assign to the variable
3262
- */
3263
- setEnumTypeDef: (name: string, value: EnumTypeDef) => LLM;
3264
- /**
3265
- * Set a variable of type EnumValueTypeDef in the llm environment
3266
- * @param name The name of the variable
3267
- * @param value The EnumValueTypeDef value to assign to the variable
3268
- */
3269
- setEnumValueTypeDef: (name: string, value: EnumValueTypeDef) => LLM;
3270
- /**
3271
- * Set a variable of type Error in the llm environment
3272
- * @param name The name of the variable
3273
- * @param value The Error value to assign to the variable
3274
- */
3275
- setError: (name: string, value: Error) => LLM;
3276
- /**
3277
- * Set a variable of type ErrorValue in the llm environment
3278
- * @param name The name of the variable
3279
- * @param value The ErrorValue value to assign to the variable
3280
- */
3281
- setErrorValue: (name: string, value: ErrorValue) => LLM;
3282
- /**
3283
- * Set a variable of type FieldTypeDef in the llm environment
3284
- * @param name The name of the variable
3285
- * @param value The FieldTypeDef value to assign to the variable
3286
- */
3287
- setFieldTypeDef: (name: string, value: FieldTypeDef) => LLM;
3288
- /**
3289
- * Set a variable of type File in the llm environment
3290
- * @param name The name of the variable
3291
- * @param value The File value to assign to the variable
3292
- */
3293
- setFile: (name: string, value: File) => LLM;
3294
- /**
3295
- * Set a variable of type Function in the llm environment
3296
- * @param name The name of the variable
3297
- * @param value The Function value to assign to the variable
3298
- */
3299
- setFunction: (name: string, value: Function_) => LLM;
3300
- /**
3301
- * Set a variable of type FunctionArg in the llm environment
3302
- * @param name The name of the variable
3303
- * @param value The FunctionArg value to assign to the variable
3304
- */
3305
- setFunctionArg: (name: string, value: FunctionArg) => LLM;
3306
- /**
3307
- * Set a variable of type FunctionCall in the llm environment
3308
- * @param name The name of the variable
3309
- * @param value The FunctionCall value to assign to the variable
3310
- */
3311
- setFunctionCall: (name: string, value: FunctionCall) => LLM;
3312
- /**
3313
- * Set a variable of type FunctionCallArgValue in the llm environment
3314
- * @param name The name of the variable
3315
- * @param value The FunctionCallArgValue value to assign to the variable
3316
- */
3317
- setFunctionCallArgValue: (name: string, value: FunctionCallArgValue) => LLM;
3318
- /**
3319
- * Set a variable of type GeneratedCode in the llm environment
3320
- * @param name The name of the variable
3321
- * @param value The GeneratedCode value to assign to the variable
3322
- */
3323
- setGeneratedCode: (name: string, value: GeneratedCode) => LLM;
3324
- /**
3325
- * Set a variable of type GitRef in the llm environment
3326
- * @param name The name of the variable
3327
- * @param value The GitRef value to assign to the variable
3328
- */
3329
- setGitRef: (name: string, value: GitRef) => LLM;
3330
- /**
3331
- * Set a variable of type GitRepository in the llm environment
3332
- * @param name The name of the variable
3333
- * @param value The GitRepository value to assign to the variable
3334
- */
3335
- setGitRepository: (name: string, value: GitRepository) => LLM;
3336
- /**
3337
- * Set a variable of type InputTypeDef in the llm environment
3338
- * @param name The name of the variable
3339
- * @param value The InputTypeDef value to assign to the variable
3340
- */
3341
- setInputTypeDef: (name: string, value: InputTypeDef) => LLM;
3342
- /**
3343
- * Set a variable of type InterfaceTypeDef in the llm environment
3344
- * @param name The name of the variable
3345
- * @param value The InterfaceTypeDef value to assign to the variable
3346
- */
3347
- setInterfaceTypeDef: (name: string, value: InterfaceTypeDef) => LLM;
3348
- /**
3349
- * Set a variable of type LLM in the llm environment
3350
- * @param name The name of the variable
3351
- * @param value The LLM value to assign to the variable
3352
- */
3353
- setLLM: (name: string, value: LLM) => LLM;
3354
- /**
3355
- * Set a variable of type ListTypeDef in the llm environment
3356
- * @param name The name of the variable
3357
- * @param value The ListTypeDef value to assign to the variable
3358
- */
3359
- setListTypeDef: (name: string, value: ListTypeDef) => LLM;
3360
- /**
3361
- * Set a variable of type Module in the llm environment
3362
- * @param name The name of the variable
3363
- * @param value The Module value to assign to the variable
3364
- */
3365
- setModule: (name: string, value: Module_) => LLM;
3366
- /**
3367
- * Set a variable of type ModuleConfigClient in the llm environment
3368
- * @param name The name of the variable
3369
- * @param value The ModuleConfigClient value to assign to the variable
3370
- */
3371
- setModuleConfigClient: (name: string, value: ModuleConfigClient) => LLM;
3372
- /**
3373
- * Set a variable of type ModuleSource in the llm environment
3374
- * @param name The name of the variable
3375
- * @param value The ModuleSource value to assign to the variable
3376
- */
3377
- setModuleSource: (name: string, value: ModuleSource) => LLM;
3378
- /**
3379
- * Set a variable of type ObjectTypeDef in the llm environment
3380
- * @param name The name of the variable
3381
- * @param value The ObjectTypeDef value to assign to the variable
3382
- */
3383
- setObjectTypeDef: (name: string, value: ObjectTypeDef) => LLM;
3384
- /**
3385
- * Set a variable of type SDKConfig in the llm environment
3386
- * @param name The name of the variable
3387
- * @param value The SDKConfig value to assign to the variable
3388
- */
3389
- setSDKConfig: (name: string, value: SDKConfig) => LLM;
3390
- /**
3391
- * Set a variable of type ScalarTypeDef in the llm environment
3392
- * @param name The name of the variable
3393
- * @param value The ScalarTypeDef value to assign to the variable
3394
- */
3395
- setScalarTypeDef: (name: string, value: ScalarTypeDef) => LLM;
3396
- /**
3397
- * Set a variable of type Secret in the llm environment
3398
- * @param name The name of the variable
3399
- * @param value The Secret value to assign to the variable
3400
- */
3401
- setSecret: (name: string, value: Secret) => LLM;
3402
- /**
3403
- * Set a variable of type Service in the llm environment
3404
- * @param name The name of the variable
3405
- * @param value The Service value to assign to the variable
3406
- */
3407
- setService: (name: string, value: Service) => LLM;
3408
- /**
3409
- * Set a variable of type Socket in the llm environment
3410
- * @param name The name of the variable
3411
- * @param value The Socket value to assign to the variable
3412
- */
3413
- setSocket: (name: string, value: Socket) => LLM;
3414
- /**
3415
- * Set a variable of type SourceMap in the llm environment
3416
- * @param name The name of the variable
3417
- * @param value The SourceMap value to assign to the variable
3418
- */
3419
- setSourceMap: (name: string, value: SourceMap) => LLM;
3420
- /**
3421
- * Add a string variable to the LLM's environment
3422
- * @param name The variable name
3423
- * @param value The variable value
3424
- */
3425
- setString: (name: string, value: string) => LLM;
3426
- /**
3427
- * Set a variable of type Terminal in the llm environment
3428
- * @param name The name of the variable
3429
- * @param value The Terminal value to assign to the variable
3430
- */
3431
- setTerminal: (name: string, value: Terminal) => LLM;
3432
- /**
3433
- * Set a variable of type TypeDef in the llm environment
3434
- * @param name The name of the variable
3435
- * @param value The TypeDef value to assign to the variable
3436
- */
3437
- setTypeDef: (name: string, value: TypeDef) => LLM;
3438
- /**
3439
- * Retrieve a the current value in the LLM environment, of type Socket
3440
- */
3441
- socket: () => Socket;
3442
- /**
3443
- * Retrieve a the current value in the LLM environment, of type SourceMap
3444
- */
3445
- sourceMap: () => SourceMap;
3446
3285
  /**
3447
3286
  * synchronize LLM state
3448
3287
  */
3449
3288
  sync: () => Promise<LLM>;
3450
3289
  /**
3451
- * Retrieve a the current value in the LLM environment, of type Terminal
3290
+ * returns the token usage of the current state
3452
3291
  */
3453
- terminal: () => Terminal;
3292
+ tokenUsage: () => LLMTokenUsage;
3454
3293
  /**
3455
3294
  * print documentation for available tools
3456
3295
  */
3457
3296
  tools: () => Promise<string>;
3458
3297
  /**
3459
- * Retrieve a the current value in the LLM environment, of type TypeDef
3460
- */
3461
- typeDef: () => TypeDef;
3462
- /**
3463
- * list variables in the LLM environment
3464
- */
3465
- variables: () => Promise<LLMVariable[]>;
3466
- /**
3467
- * Set a variable of type CacheVolume in the llm environment
3468
- * @param value The CacheVolume value to assign to the variable
3469
- */
3470
- withCacheVolume: (value: CacheVolume) => LLM;
3471
- /**
3472
- * Set a variable of type Container in the llm environment
3473
- * @param value The Container value to assign to the variable
3474
- */
3475
- withContainer: (value: Container) => LLM;
3476
- /**
3477
- * Set a variable of type CurrentModule in the llm environment
3478
- * @param value The CurrentModule value to assign to the variable
3479
- */
3480
- withCurrentModule: (value: CurrentModule) => LLM;
3481
- /**
3482
- * Set a variable of type Directory in the llm environment
3483
- * @param value The Directory value to assign to the variable
3484
- */
3485
- withDirectory: (value: Directory) => LLM;
3486
- /**
3487
- * Set a variable of type EnumTypeDef in the llm environment
3488
- * @param value The EnumTypeDef value to assign to the variable
3489
- */
3490
- withEnumTypeDef: (value: EnumTypeDef) => LLM;
3491
- /**
3492
- * Set a variable of type EnumValueTypeDef in the llm environment
3493
- * @param value The EnumValueTypeDef value to assign to the variable
3494
- */
3495
- withEnumValueTypeDef: (value: EnumValueTypeDef) => LLM;
3496
- /**
3497
- * Set a variable of type Error in the llm environment
3498
- * @param value The Error value to assign to the variable
3499
- */
3500
- withError: (value: Error) => LLM;
3501
- /**
3502
- * Set a variable of type ErrorValue in the llm environment
3503
- * @param value The ErrorValue value to assign to the variable
3504
- */
3505
- withErrorValue: (value: ErrorValue) => LLM;
3506
- /**
3507
- * Set a variable of type FieldTypeDef in the llm environment
3508
- * @param value The FieldTypeDef value to assign to the variable
3509
- */
3510
- withFieldTypeDef: (value: FieldTypeDef) => LLM;
3511
- /**
3512
- * Set a variable of type File in the llm environment
3513
- * @param value The File value to assign to the variable
3514
- */
3515
- withFile: (value: File) => LLM;
3516
- /**
3517
- * Set a variable of type Function in the llm environment
3518
- * @param value The Function value to assign to the variable
3519
- */
3520
- withFunction: (value: Function_) => LLM;
3521
- /**
3522
- * Set a variable of type FunctionArg in the llm environment
3523
- * @param value The FunctionArg value to assign to the variable
3524
- */
3525
- withFunctionArg: (value: FunctionArg) => LLM;
3526
- /**
3527
- * Set a variable of type FunctionCall in the llm environment
3528
- * @param value The FunctionCall value to assign to the variable
3298
+ * allow the LLM to interact with an environment via MCP
3529
3299
  */
3530
- withFunctionCall: (value: FunctionCall) => LLM;
3531
- /**
3532
- * Set a variable of type FunctionCallArgValue in the llm environment
3533
- * @param value The FunctionCallArgValue value to assign to the variable
3534
- */
3535
- withFunctionCallArgValue: (value: FunctionCallArgValue) => LLM;
3536
- /**
3537
- * Set a variable of type GeneratedCode in the llm environment
3538
- * @param value The GeneratedCode value to assign to the variable
3539
- */
3540
- withGeneratedCode: (value: GeneratedCode) => LLM;
3541
- /**
3542
- * Set a variable of type GitRef in the llm environment
3543
- * @param value The GitRef value to assign to the variable
3544
- */
3545
- withGitRef: (value: GitRef) => LLM;
3546
- /**
3547
- * Set a variable of type GitRepository in the llm environment
3548
- * @param value The GitRepository value to assign to the variable
3549
- */
3550
- withGitRepository: (value: GitRepository) => LLM;
3551
- /**
3552
- * Set a variable of type InputTypeDef in the llm environment
3553
- * @param value The InputTypeDef value to assign to the variable
3554
- */
3555
- withInputTypeDef: (value: InputTypeDef) => LLM;
3556
- /**
3557
- * Set a variable of type InterfaceTypeDef in the llm environment
3558
- * @param value The InterfaceTypeDef value to assign to the variable
3559
- */
3560
- withInterfaceTypeDef: (value: InterfaceTypeDef) => LLM;
3561
- /**
3562
- * Set a variable of type LLM in the llm environment
3563
- * @param value The LLM value to assign to the variable
3564
- */
3565
- withLLM: (value: LLM) => LLM;
3566
- /**
3567
- * Set a variable of type ListTypeDef in the llm environment
3568
- * @param value The ListTypeDef value to assign to the variable
3569
- */
3570
- withListTypeDef: (value: ListTypeDef) => LLM;
3300
+ withEnv: (env: Env) => LLM;
3571
3301
  /**
3572
3302
  * swap out the llm model
3573
3303
  * @param model The model to use
3574
3304
  */
3575
3305
  withModel: (model: string) => LLM;
3576
- /**
3577
- * Set a variable of type Module in the llm environment
3578
- * @param value The Module value to assign to the variable
3579
- */
3580
- withModule: (value: Module_) => LLM;
3581
- /**
3582
- * Set a variable of type ModuleConfigClient in the llm environment
3583
- * @param value The ModuleConfigClient value to assign to the variable
3584
- */
3585
- withModuleConfigClient: (value: ModuleConfigClient) => LLM;
3586
- /**
3587
- * Set a variable of type ModuleSource in the llm environment
3588
- * @param value The ModuleSource value to assign to the variable
3589
- */
3590
- withModuleSource: (value: ModuleSource) => LLM;
3591
- /**
3592
- * Set a variable of type ObjectTypeDef in the llm environment
3593
- * @param value The ObjectTypeDef value to assign to the variable
3594
- */
3595
- withObjectTypeDef: (value: ObjectTypeDef) => LLM;
3596
3306
  /**
3597
3307
  * append a prompt to the llm context
3598
3308
  * @param prompt The prompt to send
@@ -3603,56 +3313,15 @@ export declare class LLM extends BaseClient {
3603
3313
  * @param file The file to read the prompt from
3604
3314
  */
3605
3315
  withPromptFile: (file: File) => LLM;
3606
- /**
3607
- * Add a string variable to the LLM's environment
3608
- * @param name The variable name
3609
- * @param value The variable value
3610
- */
3611
- withPromptVar: (name: string, value: string) => LLM;
3612
3316
  /**
3613
3317
  * Provide the entire Query object to the LLM
3614
3318
  */
3615
3319
  withQuery: () => LLM;
3616
3320
  /**
3617
- * Set a variable of type SDKConfig in the llm environment
3618
- * @param value The SDKConfig value to assign to the variable
3321
+ * Add a system prompt to the LLM's environment
3322
+ * @param prompt The system prompt to send
3619
3323
  */
3620
- withSDKConfig: (value: SDKConfig) => LLM;
3621
- /**
3622
- * Set a variable of type ScalarTypeDef in the llm environment
3623
- * @param value The ScalarTypeDef value to assign to the variable
3624
- */
3625
- withScalarTypeDef: (value: ScalarTypeDef) => LLM;
3626
- /**
3627
- * Set a variable of type Secret in the llm environment
3628
- * @param value The Secret value to assign to the variable
3629
- */
3630
- withSecret: (value: Secret) => LLM;
3631
- /**
3632
- * Set a variable of type Service in the llm environment
3633
- * @param value The Service value to assign to the variable
3634
- */
3635
- withService: (value: Service) => LLM;
3636
- /**
3637
- * Set a variable of type Socket in the llm environment
3638
- * @param value The Socket value to assign to the variable
3639
- */
3640
- withSocket: (value: Socket) => LLM;
3641
- /**
3642
- * Set a variable of type SourceMap in the llm environment
3643
- * @param value The SourceMap value to assign to the variable
3644
- */
3645
- withSourceMap: (value: SourceMap) => LLM;
3646
- /**
3647
- * Set a variable of type Terminal in the llm environment
3648
- * @param value The Terminal value to assign to the variable
3649
- */
3650
- withTerminal: (value: Terminal) => LLM;
3651
- /**
3652
- * Set a variable of type TypeDef in the llm environment
3653
- * @param value The TypeDef value to assign to the variable
3654
- */
3655
- withTypeDef: (value: TypeDef) => LLM;
3324
+ withSystemPrompt: (prompt: string) => LLM;
3656
3325
  /**
3657
3326
  * Call the provided function with current LLM.
3658
3327
  *
@@ -3660,22 +3329,22 @@ export declare class LLM extends BaseClient {
3660
3329
  */
3661
3330
  with: (arg: (param: LLM) => LLM) => LLM;
3662
3331
  }
3663
- export declare class LLMVariable extends BaseClient {
3332
+ export declare class LLMTokenUsage extends BaseClient {
3664
3333
  private readonly _id?;
3665
- private readonly _hash?;
3666
- private readonly _name?;
3667
- private readonly _typeName?;
3334
+ private readonly _inputTokens?;
3335
+ private readonly _outputTokens?;
3336
+ private readonly _totalTokens?;
3668
3337
  /**
3669
3338
  * Constructor is used for internal usage only, do not create object from it.
3670
3339
  */
3671
- constructor(ctx?: Context, _id?: LLMVariableID, _hash?: string, _name?: string, _typeName?: string);
3340
+ constructor(ctx?: Context, _id?: LLMTokenUsageID, _inputTokens?: number, _outputTokens?: number, _totalTokens?: number);
3672
3341
  /**
3673
- * A unique identifier for this LLMVariable.
3342
+ * A unique identifier for this LLMTokenUsage.
3674
3343
  */
3675
- id: () => Promise<LLMVariableID>;
3676
- hash: () => Promise<string>;
3677
- name: () => Promise<string>;
3678
- typeName: () => Promise<string>;
3344
+ id: () => Promise<LLMTokenUsageID>;
3345
+ inputTokens: () => Promise<number>;
3346
+ outputTokens: () => Promise<number>;
3347
+ totalTokens: () => Promise<number>;
3679
3348
  }
3680
3349
  /**
3681
3350
  * A simple key value object that represents a label.
@@ -4123,11 +3792,6 @@ export declare class Client extends BaseClient {
4123
3792
  * Get the Raw GraphQL client.
4124
3793
  */
4125
3794
  getGQLClient(): import("graphql-request").GraphQLClient;
4126
- /**
4127
- * Retrieves a container builtin to the engine.
4128
- * @param digest Digest of the image manifest
4129
- */
4130
- builtinContainer: (digest: string) => Container;
4131
3795
  /**
4132
3796
  * Constructs a cache volume for a given cache key.
4133
3797
  * @param key A string identifier to target this cache volume (e.g., "modules-cache").
@@ -4166,6 +3830,10 @@ export declare class Client extends BaseClient {
4166
3830
  * The Dagger engine container configuration and state
4167
3831
  */
4168
3832
  engine: () => Engine;
3833
+ /**
3834
+ * Initialize a new environment
3835
+ */
3836
+ env: () => Env;
4169
3837
  /**
4170
3838
  * Create a new error.
4171
3839
  * @param message A brief description of the error.
@@ -4210,6 +3878,10 @@ export declare class Client extends BaseClient {
4210
3878
  * @param opts.maxAPICalls Cap the number of API calls for this LLM
4211
3879
  */
4212
3880
  llm: (opts?: ClientLlmOpts) => LLM;
3881
+ /**
3882
+ * Load a Binding from its ID.
3883
+ */
3884
+ loadBindingFromID: (id: BindingID) => Binding;
4213
3885
  /**
4214
3886
  * Load a CacheVolume from its ID.
4215
3887
  */
@@ -4250,6 +3922,10 @@ export declare class Client extends BaseClient {
4250
3922
  * Load a EnumValueTypeDef from its ID.
4251
3923
  */
4252
3924
  loadEnumValueTypeDefFromID: (id: EnumValueTypeDefID) => EnumValueTypeDef;
3925
+ /**
3926
+ * Load a Env from its ID.
3927
+ */
3928
+ loadEnvFromID: (id: EnvID) => Env;
4253
3929
  /**
4254
3930
  * Load a EnvVariable from its ID.
4255
3931
  */
@@ -4315,9 +3991,9 @@ export declare class Client extends BaseClient {
4315
3991
  */
4316
3992
  loadLLMFromID: (id: LLMID) => LLM;
4317
3993
  /**
4318
- * Load a LLMVariable from its ID.
3994
+ * Load a LLMTokenUsage from its ID.
4319
3995
  */
4320
- loadLLMVariableFromID: (id: LLMVariableID) => LLMVariable;
3996
+ loadLLMTokenUsageFromID: (id: LLMTokenUsageID) => LLMTokenUsage;
4321
3997
  /**
4322
3998
  * Load a Label from its ID.
4323
3999
  */