@iqai/adk 0.1.21 → 0.2.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/CHANGELOG.md +52 -0
- package/dist/index.d.mts +539 -348
- package/dist/index.d.ts +539 -348
- package/dist/index.js +1780 -376
- package/dist/index.mjs +1611 -207
- package/package.json +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -1058,106 +1058,38 @@ declare abstract class BaseCodeExecutor {
|
|
|
1058
1058
|
get executionResultDelimiters(): [string, string];
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
/**
|
|
1062
|
-
* Candidate response from the model.
|
|
1063
|
-
*/
|
|
1064
1061
|
interface Candidate {
|
|
1065
1062
|
content?: Content;
|
|
1066
1063
|
groundingMetadata?: GroundingMetadata;
|
|
1067
1064
|
finishReason?: string;
|
|
1068
1065
|
finishMessage?: string;
|
|
1069
1066
|
}
|
|
1070
|
-
/**
|
|
1071
|
-
* Prompt feedback in case of blocked or failed prompt.
|
|
1072
|
-
*/
|
|
1073
1067
|
interface PromptFeedback {
|
|
1074
1068
|
blockReason?: string;
|
|
1075
1069
|
blockReasonMessage?: string;
|
|
1076
1070
|
}
|
|
1077
|
-
/**
|
|
1078
|
-
* The response from the model generation API.
|
|
1079
|
-
*/
|
|
1080
1071
|
interface GenerateContentResponse {
|
|
1081
1072
|
candidates?: Candidate[];
|
|
1082
1073
|
usageMetadata?: GenerateContentResponseUsageMetadata;
|
|
1083
1074
|
promptFeedback?: PromptFeedback;
|
|
1084
1075
|
}
|
|
1085
|
-
/**
|
|
1086
|
-
* Response from a language model.
|
|
1087
|
-
*/
|
|
1088
1076
|
declare class LlmResponse {
|
|
1089
|
-
/**
|
|
1090
|
-
* Unique identifier for the response.
|
|
1091
|
-
*/
|
|
1092
1077
|
id?: string;
|
|
1093
|
-
|
|
1094
|
-
* The content generated by the model.
|
|
1095
|
-
*/
|
|
1078
|
+
text?: string;
|
|
1096
1079
|
content?: Content;
|
|
1097
|
-
/**
|
|
1098
|
-
* The grounding metadata of the response.
|
|
1099
|
-
*/
|
|
1100
1080
|
groundingMetadata?: GroundingMetadata;
|
|
1101
|
-
/**
|
|
1102
|
-
* Indicates whether the text content is part of an unfinished text stream.
|
|
1103
|
-
*/
|
|
1104
1081
|
partial?: boolean;
|
|
1105
|
-
/**
|
|
1106
|
-
* Indicates whether the response from the model is complete.
|
|
1107
|
-
*/
|
|
1108
1082
|
turnComplete?: boolean;
|
|
1109
|
-
/**
|
|
1110
|
-
* Error code if the response is an error.
|
|
1111
|
-
*/
|
|
1112
1083
|
errorCode?: string;
|
|
1113
|
-
/**
|
|
1114
|
-
* Error message if the response is an error.
|
|
1115
|
-
*/
|
|
1116
1084
|
errorMessage?: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* Flag indicating that LLM was interrupted when generating the content.
|
|
1119
|
-
*/
|
|
1120
1085
|
interrupted?: boolean;
|
|
1121
|
-
/**
|
|
1122
|
-
* The custom metadata of the LlmResponse.
|
|
1123
|
-
*/
|
|
1124
1086
|
customMetadata?: Record<string, any>;
|
|
1125
|
-
/**
|
|
1126
|
-
* The usage metadata of the LlmResponse.
|
|
1127
|
-
*/
|
|
1128
1087
|
usageMetadata?: GenerateContentResponseUsageMetadata;
|
|
1129
|
-
/**
|
|
1130
|
-
* Index of the candidate response.
|
|
1131
|
-
*/
|
|
1132
1088
|
candidateIndex?: number;
|
|
1133
|
-
/**
|
|
1134
|
-
* Reason why the model finished generating.
|
|
1135
|
-
*/
|
|
1136
1089
|
finishReason?: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Error object if the response is an error.
|
|
1139
|
-
*/
|
|
1140
1090
|
error?: Error;
|
|
1141
|
-
/**
|
|
1142
|
-
* Creates a new LlmResponse.
|
|
1143
|
-
*/
|
|
1144
1091
|
constructor(data?: Partial<LlmResponse>);
|
|
1145
|
-
/**
|
|
1146
|
-
* Creates an LlmResponse from a GenerateContentResponse.
|
|
1147
|
-
*
|
|
1148
|
-
* @param generateContentResponse The GenerateContentResponse to create the LlmResponse from.
|
|
1149
|
-
* @returns The LlmResponse.
|
|
1150
|
-
*/
|
|
1151
1092
|
static create(generateContentResponse: GenerateContentResponse): LlmResponse;
|
|
1152
|
-
/**
|
|
1153
|
-
* Creates an LlmResponse from an error.
|
|
1154
|
-
*
|
|
1155
|
-
* @param error The error object or message.
|
|
1156
|
-
* @param options Additional options for the error response.
|
|
1157
|
-
* @param options.errorCode A specific error code for the response.
|
|
1158
|
-
* @param options.model The model that was being used when the error occurred.
|
|
1159
|
-
* @returns The LlmResponse.
|
|
1160
|
-
*/
|
|
1161
1093
|
static fromError(error: unknown, options?: {
|
|
1162
1094
|
errorCode?: string;
|
|
1163
1095
|
model?: string;
|
|
@@ -1214,7 +1146,7 @@ declare abstract class BaseLLMConnection {
|
|
|
1214
1146
|
*/
|
|
1215
1147
|
declare abstract class BaseLlm {
|
|
1216
1148
|
/**
|
|
1217
|
-
* The name of the LLM, e.g. gemini-
|
|
1149
|
+
* The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-flash-001.
|
|
1218
1150
|
*/
|
|
1219
1151
|
model: string;
|
|
1220
1152
|
protected logger: Logger;
|
|
@@ -2518,78 +2450,78 @@ declare function getMcpTools(config: McpConfig, toolFilter?: string[] | ((tool:
|
|
|
2518
2450
|
* Tools module exports
|
|
2519
2451
|
*/
|
|
2520
2452
|
|
|
2521
|
-
type index$
|
|
2522
|
-
declare const index$
|
|
2523
|
-
type index$
|
|
2524
|
-
type index$
|
|
2525
|
-
type index$
|
|
2526
|
-
declare const index$
|
|
2527
|
-
type index$
|
|
2528
|
-
type index$
|
|
2529
|
-
type index$
|
|
2530
|
-
type index$
|
|
2531
|
-
type index$
|
|
2532
|
-
declare const index$
|
|
2533
|
-
type index$
|
|
2534
|
-
declare const index$
|
|
2535
|
-
type index$
|
|
2536
|
-
declare const index$
|
|
2537
|
-
type index$
|
|
2538
|
-
declare const index$
|
|
2539
|
-
type index$
|
|
2540
|
-
declare const index$
|
|
2541
|
-
type index$
|
|
2542
|
-
declare const index$
|
|
2543
|
-
type index$
|
|
2544
|
-
declare const index$
|
|
2545
|
-
type index$
|
|
2546
|
-
declare const index$
|
|
2547
|
-
declare const index$
|
|
2548
|
-
declare const index$
|
|
2549
|
-
declare const index$
|
|
2550
|
-
declare const index$
|
|
2551
|
-
type index$
|
|
2552
|
-
declare const index$
|
|
2553
|
-
type index$
|
|
2554
|
-
declare const index$
|
|
2555
|
-
type index$
|
|
2556
|
-
declare const index$
|
|
2557
|
-
declare const index$
|
|
2558
|
-
declare const index$
|
|
2559
|
-
declare const index$
|
|
2560
|
-
declare const index$
|
|
2561
|
-
declare const index$
|
|
2562
|
-
declare const index$
|
|
2563
|
-
declare const index$
|
|
2564
|
-
declare const index$
|
|
2565
|
-
type index$
|
|
2566
|
-
declare const index$
|
|
2567
|
-
type index$
|
|
2568
|
-
type index$
|
|
2569
|
-
type index$
|
|
2570
|
-
declare const index$
|
|
2571
|
-
type index$
|
|
2572
|
-
declare const index$
|
|
2573
|
-
type index$
|
|
2574
|
-
type index$
|
|
2575
|
-
type index$
|
|
2576
|
-
type index$
|
|
2577
|
-
declare const index$
|
|
2578
|
-
type index$
|
|
2579
|
-
declare const index$
|
|
2580
|
-
type index$
|
|
2581
|
-
declare const index$
|
|
2582
|
-
declare const index$
|
|
2583
|
-
declare const index$
|
|
2584
|
-
declare const index$
|
|
2585
|
-
declare const index$
|
|
2586
|
-
declare const index$
|
|
2587
|
-
declare const index$
|
|
2588
|
-
declare const index$
|
|
2589
|
-
declare const index$
|
|
2590
|
-
declare const index$
|
|
2591
|
-
declare namespace index$
|
|
2592
|
-
export { index$
|
|
2453
|
+
type index$7_AgentTool = AgentTool;
|
|
2454
|
+
declare const index$7_AgentTool: typeof AgentTool;
|
|
2455
|
+
type index$7_AgentToolConfig = AgentToolConfig;
|
|
2456
|
+
type index$7_BaseAgentType = BaseAgentType;
|
|
2457
|
+
type index$7_BaseTool = BaseTool;
|
|
2458
|
+
declare const index$7_BaseTool: typeof BaseTool;
|
|
2459
|
+
type index$7_BuildFunctionDeclarationOptions = BuildFunctionDeclarationOptions;
|
|
2460
|
+
type index$7_CreateToolConfig<T extends Record<string, any> = Record<string, never>> = CreateToolConfig<T>;
|
|
2461
|
+
type index$7_CreateToolConfigWithSchema<T extends Record<string, any>> = CreateToolConfigWithSchema<T>;
|
|
2462
|
+
type index$7_CreateToolConfigWithoutSchema = CreateToolConfigWithoutSchema;
|
|
2463
|
+
type index$7_ExitLoopTool = ExitLoopTool;
|
|
2464
|
+
declare const index$7_ExitLoopTool: typeof ExitLoopTool;
|
|
2465
|
+
type index$7_FileOperationsTool = FileOperationsTool;
|
|
2466
|
+
declare const index$7_FileOperationsTool: typeof FileOperationsTool;
|
|
2467
|
+
type index$7_FunctionTool<T extends Record<string, any>> = FunctionTool<T>;
|
|
2468
|
+
declare const index$7_FunctionTool: typeof FunctionTool;
|
|
2469
|
+
type index$7_GetUserChoiceTool = GetUserChoiceTool;
|
|
2470
|
+
declare const index$7_GetUserChoiceTool: typeof GetUserChoiceTool;
|
|
2471
|
+
type index$7_GoogleSearch = GoogleSearch;
|
|
2472
|
+
declare const index$7_GoogleSearch: typeof GoogleSearch;
|
|
2473
|
+
type index$7_HttpRequestTool = HttpRequestTool;
|
|
2474
|
+
declare const index$7_HttpRequestTool: typeof HttpRequestTool;
|
|
2475
|
+
type index$7_LoadArtifactsTool = LoadArtifactsTool;
|
|
2476
|
+
declare const index$7_LoadArtifactsTool: typeof LoadArtifactsTool;
|
|
2477
|
+
type index$7_LoadMemoryTool = LoadMemoryTool;
|
|
2478
|
+
declare const index$7_LoadMemoryTool: typeof LoadMemoryTool;
|
|
2479
|
+
declare const index$7_McpAbi: typeof McpAbi;
|
|
2480
|
+
declare const index$7_McpAtp: typeof McpAtp;
|
|
2481
|
+
declare const index$7_McpBamm: typeof McpBamm;
|
|
2482
|
+
declare const index$7_McpCoinGecko: typeof McpCoinGecko;
|
|
2483
|
+
type index$7_McpConfig = McpConfig;
|
|
2484
|
+
declare const index$7_McpDiscord: typeof McpDiscord;
|
|
2485
|
+
type index$7_McpError = McpError;
|
|
2486
|
+
declare const index$7_McpError: typeof McpError;
|
|
2487
|
+
type index$7_McpErrorType = McpErrorType;
|
|
2488
|
+
declare const index$7_McpErrorType: typeof McpErrorType;
|
|
2489
|
+
declare const index$7_McpFilesystem: typeof McpFilesystem;
|
|
2490
|
+
declare const index$7_McpFraxlend: typeof McpFraxlend;
|
|
2491
|
+
declare const index$7_McpGeneric: typeof McpGeneric;
|
|
2492
|
+
declare const index$7_McpIqWiki: typeof McpIqWiki;
|
|
2493
|
+
declare const index$7_McpMemory: typeof McpMemory;
|
|
2494
|
+
declare const index$7_McpNearAgent: typeof McpNearAgent;
|
|
2495
|
+
declare const index$7_McpNearIntents: typeof McpNearIntents;
|
|
2496
|
+
declare const index$7_McpOdos: typeof McpOdos;
|
|
2497
|
+
type index$7_McpSamplingHandler = McpSamplingHandler;
|
|
2498
|
+
declare const index$7_McpSamplingHandler: typeof McpSamplingHandler;
|
|
2499
|
+
type index$7_McpSamplingRequest = McpSamplingRequest;
|
|
2500
|
+
type index$7_McpSamplingResponse = McpSamplingResponse;
|
|
2501
|
+
type index$7_McpServerConfig = McpServerConfig;
|
|
2502
|
+
declare const index$7_McpTelegram: typeof McpTelegram;
|
|
2503
|
+
type index$7_McpToolset = McpToolset;
|
|
2504
|
+
declare const index$7_McpToolset: typeof McpToolset;
|
|
2505
|
+
type index$7_McpTransportType = McpTransportType;
|
|
2506
|
+
type index$7_SamplingHandler = SamplingHandler;
|
|
2507
|
+
type index$7_ToolConfig = ToolConfig;
|
|
2508
|
+
type index$7_ToolContext = ToolContext;
|
|
2509
|
+
declare const index$7_ToolContext: typeof ToolContext;
|
|
2510
|
+
type index$7_TransferToAgentTool = TransferToAgentTool;
|
|
2511
|
+
declare const index$7_TransferToAgentTool: typeof TransferToAgentTool;
|
|
2512
|
+
type index$7_UserInteractionTool = UserInteractionTool;
|
|
2513
|
+
declare const index$7_UserInteractionTool: typeof UserInteractionTool;
|
|
2514
|
+
declare const index$7_adkToMcpToolType: typeof adkToMcpToolType;
|
|
2515
|
+
declare const index$7_buildFunctionDeclaration: typeof buildFunctionDeclaration;
|
|
2516
|
+
declare const index$7_createFunctionTool: typeof createFunctionTool;
|
|
2517
|
+
declare const index$7_createSamplingHandler: typeof createSamplingHandler;
|
|
2518
|
+
declare const index$7_createTool: typeof createTool;
|
|
2519
|
+
declare const index$7_getMcpTools: typeof getMcpTools;
|
|
2520
|
+
declare const index$7_jsonSchemaToDeclaration: typeof jsonSchemaToDeclaration;
|
|
2521
|
+
declare const index$7_mcpSchemaToParameters: typeof mcpSchemaToParameters;
|
|
2522
|
+
declare const index$7_normalizeJsonSchema: typeof normalizeJsonSchema;
|
|
2523
|
+
declare namespace index$7 {
|
|
2524
|
+
export { index$7_AgentTool as AgentTool, type index$7_AgentToolConfig as AgentToolConfig, type index$7_BaseAgentType as BaseAgentType, index$7_BaseTool as BaseTool, type index$7_BuildFunctionDeclarationOptions as BuildFunctionDeclarationOptions, type index$7_CreateToolConfig as CreateToolConfig, type index$7_CreateToolConfigWithSchema as CreateToolConfigWithSchema, type index$7_CreateToolConfigWithoutSchema as CreateToolConfigWithoutSchema, index$7_ExitLoopTool as ExitLoopTool, index$7_FileOperationsTool as FileOperationsTool, index$7_FunctionTool as FunctionTool, index$7_GetUserChoiceTool as GetUserChoiceTool, index$7_GoogleSearch as GoogleSearch, index$7_HttpRequestTool as HttpRequestTool, index$7_LoadArtifactsTool as LoadArtifactsTool, index$7_LoadMemoryTool as LoadMemoryTool, index$7_McpAbi as McpAbi, index$7_McpAtp as McpAtp, index$7_McpBamm as McpBamm, index$7_McpCoinGecko as McpCoinGecko, type index$7_McpConfig as McpConfig, index$7_McpDiscord as McpDiscord, index$7_McpError as McpError, index$7_McpErrorType as McpErrorType, index$7_McpFilesystem as McpFilesystem, index$7_McpFraxlend as McpFraxlend, index$7_McpGeneric as McpGeneric, index$7_McpIqWiki as McpIqWiki, index$7_McpMemory as McpMemory, index$7_McpNearAgent as McpNearAgent, index$7_McpNearIntents as McpNearIntents, index$7_McpOdos as McpOdos, index$7_McpSamplingHandler as McpSamplingHandler, type index$7_McpSamplingRequest as McpSamplingRequest, type index$7_McpSamplingResponse as McpSamplingResponse, type index$7_McpServerConfig as McpServerConfig, index$7_McpTelegram as McpTelegram, index$7_McpToolset as McpToolset, type index$7_McpTransportType as McpTransportType, type index$7_SamplingHandler as SamplingHandler, type index$7_ToolConfig as ToolConfig, index$7_ToolContext as ToolContext, index$7_TransferToAgentTool as TransferToAgentTool, index$7_UserInteractionTool as UserInteractionTool, index$7_adkToMcpToolType as adkToMcpToolType, index$7_buildFunctionDeclaration as buildFunctionDeclaration, index$7_createFunctionTool as createFunctionTool, index$7_createSamplingHandler as createSamplingHandler, index$7_createTool as createTool, index$7_getMcpTools as getMcpTools, index$7_jsonSchemaToDeclaration as jsonSchemaToDeclaration, index$7_mcpSchemaToParameters as mcpSchemaToParameters, index$7_normalizeJsonSchema as normalizeJsonSchema };
|
|
2593
2525
|
}
|
|
2594
2526
|
|
|
2595
2527
|
/**
|
|
@@ -2914,52 +2846,37 @@ declare class OpenAiLlm extends BaseLlm {
|
|
|
2914
2846
|
private get client();
|
|
2915
2847
|
}
|
|
2916
2848
|
|
|
2917
|
-
/**
|
|
2918
|
-
* Type for LLM constructor with static methods
|
|
2919
|
-
*/
|
|
2920
2849
|
interface LLMClass {
|
|
2921
2850
|
new (model: string): BaseLlm;
|
|
2922
2851
|
supportedModels(): string[];
|
|
2923
2852
|
}
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2853
|
+
interface LlmModelConfig {
|
|
2854
|
+
temperature?: number;
|
|
2855
|
+
maxOutputTokens?: number;
|
|
2856
|
+
topP?: number;
|
|
2857
|
+
topK?: number;
|
|
2858
|
+
}
|
|
2859
|
+
interface LlmModel {
|
|
2860
|
+
generateContent(options: {
|
|
2861
|
+
prompt: string;
|
|
2862
|
+
} & LlmModelConfig): Promise<LlmResponse>;
|
|
2863
|
+
}
|
|
2927
2864
|
declare class LLMRegistry {
|
|
2928
|
-
/**
|
|
2929
|
-
* Map of model name regex to LLM class
|
|
2930
|
-
*/
|
|
2931
2865
|
private static llmRegistry;
|
|
2866
|
+
private static modelInstances;
|
|
2932
2867
|
private static logger;
|
|
2933
|
-
/**
|
|
2934
|
-
* Creates a new LLM instance
|
|
2935
|
-
*
|
|
2936
|
-
* @param model The model name
|
|
2937
|
-
* @returns The LLM instance
|
|
2938
|
-
*/
|
|
2939
2868
|
static newLLM(model: string): BaseLlm;
|
|
2940
|
-
/**
|
|
2941
|
-
* Resolves the LLM class from the model name
|
|
2942
|
-
*
|
|
2943
|
-
* @param model The model name
|
|
2944
|
-
* @returns The LLM class
|
|
2945
|
-
*/
|
|
2946
2869
|
static resolve(model: string): LLMClass | null;
|
|
2947
|
-
/**
|
|
2948
|
-
* Registers a new LLM class
|
|
2949
|
-
*
|
|
2950
|
-
* @param modelNameRegex The regex to match model names
|
|
2951
|
-
* @param llmClass The LLM class
|
|
2952
|
-
*/
|
|
2953
2870
|
static register(modelNameRegex: string, llmClass: LLMClass): void;
|
|
2954
|
-
/**
|
|
2955
|
-
* Registers all model patterns from an LLM class
|
|
2956
|
-
*
|
|
2957
|
-
* @param llmClass The LLM class
|
|
2958
|
-
*/
|
|
2959
2871
|
static registerLLM(llmClass: LLMClass): void;
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2872
|
+
static registerModel(name: string, model: LlmModel): void;
|
|
2873
|
+
static getModel(name: string): LlmModel;
|
|
2874
|
+
static hasModel(name: string): boolean;
|
|
2875
|
+
static unregisterModel(name: string): void;
|
|
2876
|
+
static getModelOrCreate(name: string): LlmModel | BaseLlm;
|
|
2877
|
+
static clear(): void;
|
|
2878
|
+
static clearModels(): void;
|
|
2879
|
+
static clearClasses(): void;
|
|
2963
2880
|
static logRegisteredModels(): void;
|
|
2964
2881
|
}
|
|
2965
2882
|
|
|
@@ -3462,66 +3379,68 @@ declare class OAuth2Credential extends AuthCredential {
|
|
|
3462
3379
|
* Models module exports - consolidated to match Python structure
|
|
3463
3380
|
*/
|
|
3464
3381
|
|
|
3465
|
-
type index$
|
|
3466
|
-
declare const index$
|
|
3467
|
-
type index$
|
|
3468
|
-
declare const index$
|
|
3469
|
-
type index$
|
|
3470
|
-
declare const index$
|
|
3471
|
-
type index$
|
|
3472
|
-
declare const index$
|
|
3473
|
-
type index$
|
|
3474
|
-
declare const index$
|
|
3475
|
-
type index$
|
|
3476
|
-
declare const index$
|
|
3477
|
-
type index$
|
|
3478
|
-
declare const index$
|
|
3479
|
-
type index$
|
|
3480
|
-
declare const index$
|
|
3481
|
-
type index$
|
|
3482
|
-
declare const index$
|
|
3483
|
-
type index$
|
|
3484
|
-
declare const index$
|
|
3485
|
-
type index$
|
|
3486
|
-
declare const index$
|
|
3487
|
-
type index$
|
|
3488
|
-
declare const index$
|
|
3489
|
-
type index$
|
|
3490
|
-
type index$
|
|
3491
|
-
declare const index$
|
|
3492
|
-
type index$
|
|
3493
|
-
declare const index$
|
|
3494
|
-
declare const index$
|
|
3495
|
-
declare const index$
|
|
3496
|
-
declare const index$
|
|
3497
|
-
type index$
|
|
3498
|
-
declare const index$
|
|
3499
|
-
type index$
|
|
3500
|
-
declare const index$
|
|
3501
|
-
type index$
|
|
3502
|
-
declare const index$
|
|
3503
|
-
type index$
|
|
3504
|
-
|
|
3505
|
-
type index$
|
|
3506
|
-
declare const index$
|
|
3507
|
-
type index$
|
|
3508
|
-
declare const index$
|
|
3509
|
-
type index$
|
|
3510
|
-
declare const index$
|
|
3511
|
-
type index$
|
|
3512
|
-
|
|
3513
|
-
type index$
|
|
3514
|
-
|
|
3515
|
-
type index$
|
|
3516
|
-
declare const index$
|
|
3517
|
-
type index$
|
|
3518
|
-
|
|
3519
|
-
type index$
|
|
3520
|
-
|
|
3521
|
-
type index$
|
|
3522
|
-
declare const index$
|
|
3523
|
-
|
|
3524
|
-
|
|
3382
|
+
type index$6_AiSdkLlm = AiSdkLlm;
|
|
3383
|
+
declare const index$6_AiSdkLlm: typeof AiSdkLlm;
|
|
3384
|
+
type index$6_AnthropicLlm = AnthropicLlm;
|
|
3385
|
+
declare const index$6_AnthropicLlm: typeof AnthropicLlm;
|
|
3386
|
+
type index$6_ApiKeyCredential = ApiKeyCredential;
|
|
3387
|
+
declare const index$6_ApiKeyCredential: typeof ApiKeyCredential;
|
|
3388
|
+
type index$6_ApiKeyScheme = ApiKeyScheme;
|
|
3389
|
+
declare const index$6_ApiKeyScheme: typeof ApiKeyScheme;
|
|
3390
|
+
type index$6_AuthConfig = AuthConfig;
|
|
3391
|
+
declare const index$6_AuthConfig: typeof AuthConfig;
|
|
3392
|
+
type index$6_AuthCredential = AuthCredential;
|
|
3393
|
+
declare const index$6_AuthCredential: typeof AuthCredential;
|
|
3394
|
+
type index$6_AuthCredentialType = AuthCredentialType;
|
|
3395
|
+
declare const index$6_AuthCredentialType: typeof AuthCredentialType;
|
|
3396
|
+
type index$6_AuthHandler = AuthHandler;
|
|
3397
|
+
declare const index$6_AuthHandler: typeof AuthHandler;
|
|
3398
|
+
type index$6_AuthScheme = AuthScheme;
|
|
3399
|
+
declare const index$6_AuthScheme: typeof AuthScheme;
|
|
3400
|
+
type index$6_AuthSchemeType = AuthSchemeType;
|
|
3401
|
+
declare const index$6_AuthSchemeType: typeof AuthSchemeType;
|
|
3402
|
+
type index$6_BaseLLMConnection = BaseLLMConnection;
|
|
3403
|
+
declare const index$6_BaseLLMConnection: typeof BaseLLMConnection;
|
|
3404
|
+
type index$6_BaseLlm = BaseLlm;
|
|
3405
|
+
declare const index$6_BaseLlm: typeof BaseLlm;
|
|
3406
|
+
type index$6_BaseMemoryService = BaseMemoryService;
|
|
3407
|
+
type index$6_BasicAuthCredential = BasicAuthCredential;
|
|
3408
|
+
declare const index$6_BasicAuthCredential: typeof BasicAuthCredential;
|
|
3409
|
+
type index$6_BearerTokenCredential = BearerTokenCredential;
|
|
3410
|
+
declare const index$6_BearerTokenCredential: typeof BearerTokenCredential;
|
|
3411
|
+
declare const index$6_Blob: typeof Blob;
|
|
3412
|
+
declare const index$6_Content: typeof Content;
|
|
3413
|
+
declare const index$6_FunctionDeclaration: typeof FunctionDeclaration;
|
|
3414
|
+
type index$6_GoogleLlm = GoogleLlm;
|
|
3415
|
+
declare const index$6_GoogleLlm: typeof GoogleLlm;
|
|
3416
|
+
type index$6_HttpScheme = HttpScheme;
|
|
3417
|
+
declare const index$6_HttpScheme: typeof HttpScheme;
|
|
3418
|
+
type index$6_LLMRegistry = LLMRegistry;
|
|
3419
|
+
declare const index$6_LLMRegistry: typeof LLMRegistry;
|
|
3420
|
+
type index$6_LlmModel = LlmModel;
|
|
3421
|
+
type index$6_LlmModelConfig = LlmModelConfig;
|
|
3422
|
+
type index$6_LlmRequest = LlmRequest;
|
|
3423
|
+
declare const index$6_LlmRequest: typeof LlmRequest;
|
|
3424
|
+
type index$6_LlmResponse = LlmResponse;
|
|
3425
|
+
declare const index$6_LlmResponse: typeof LlmResponse;
|
|
3426
|
+
type index$6_OAuth2Credential = OAuth2Credential;
|
|
3427
|
+
declare const index$6_OAuth2Credential: typeof OAuth2Credential;
|
|
3428
|
+
type index$6_OAuth2Scheme = OAuth2Scheme;
|
|
3429
|
+
declare const index$6_OAuth2Scheme: typeof OAuth2Scheme;
|
|
3430
|
+
type index$6_OAuthFlow = OAuthFlow;
|
|
3431
|
+
type index$6_OAuthFlows = OAuthFlows;
|
|
3432
|
+
type index$6_OpenAiLlm = OpenAiLlm;
|
|
3433
|
+
declare const index$6_OpenAiLlm: typeof OpenAiLlm;
|
|
3434
|
+
type index$6_OpenIdConnectScheme = OpenIdConnectScheme;
|
|
3435
|
+
declare const index$6_OpenIdConnectScheme: typeof OpenIdConnectScheme;
|
|
3436
|
+
type index$6_SearchMemoryResponse = SearchMemoryResponse;
|
|
3437
|
+
type index$6_Session = Session;
|
|
3438
|
+
type index$6_State = State;
|
|
3439
|
+
declare const index$6_State: typeof State;
|
|
3440
|
+
type index$6_ThinkingConfig = ThinkingConfig;
|
|
3441
|
+
declare const index$6_registerProviders: typeof registerProviders;
|
|
3442
|
+
declare namespace index$6 {
|
|
3443
|
+
export { index$6_AiSdkLlm as AiSdkLlm, index$6_AnthropicLlm as AnthropicLlm, index$6_ApiKeyCredential as ApiKeyCredential, index$6_ApiKeyScheme as ApiKeyScheme, index$6_AuthConfig as AuthConfig, index$6_AuthCredential as AuthCredential, index$6_AuthCredentialType as AuthCredentialType, index$6_AuthHandler as AuthHandler, index$6_AuthScheme as AuthScheme, index$6_AuthSchemeType as AuthSchemeType, index$6_BaseLLMConnection as BaseLLMConnection, index$6_BaseLlm as BaseLlm, type index$6_BaseMemoryService as BaseMemoryService, index$6_BasicAuthCredential as BasicAuthCredential, index$6_BearerTokenCredential as BearerTokenCredential, index$6_Blob as Blob, index$6_Content as Content, index$6_FunctionDeclaration as FunctionDeclaration, index$6_GoogleLlm as GoogleLlm, index$6_HttpScheme as HttpScheme, Schema as JSONSchema, index$6_LLMRegistry as LLMRegistry, type index$6_LlmModel as LlmModel, type index$6_LlmModelConfig as LlmModelConfig, index$6_LlmRequest as LlmRequest, index$6_LlmResponse as LlmResponse, index$6_OAuth2Credential as OAuth2Credential, index$6_OAuth2Scheme as OAuth2Scheme, type index$6_OAuthFlow as OAuthFlow, type index$6_OAuthFlows as OAuthFlows, index$6_OpenAiLlm as OpenAiLlm, index$6_OpenIdConnectScheme as OpenIdConnectScheme, type index$6_SearchMemoryResponse as SearchMemoryResponse, type index$6_Session as Session, index$6_State as State, type index$6_ThinkingConfig as ThinkingConfig, index$6_registerProviders as registerProviders };
|
|
3525
3444
|
}
|
|
3526
3445
|
|
|
3527
3446
|
/**
|
|
@@ -4087,7 +4006,7 @@ type AgentType = "llm" | "sequential" | "parallel" | "loop" | "langgraph";
|
|
|
4087
4006
|
/**
|
|
4088
4007
|
* AgentBuilder with typed output schema
|
|
4089
4008
|
*/
|
|
4090
|
-
interface AgentBuilderWithSchema<T> extends Omit<AgentBuilder,
|
|
4009
|
+
interface AgentBuilderWithSchema<T> extends Omit<AgentBuilder, "build" | "ask"> {
|
|
4091
4010
|
build(): Promise<BuiltAgent<T>>;
|
|
4092
4011
|
buildWithSchema<U = T>(): Promise<BuiltAgent<U>>;
|
|
4093
4012
|
ask(message: string | FullMessage): Promise<T>;
|
|
@@ -4144,6 +4063,10 @@ declare class AgentBuilder {
|
|
|
4144
4063
|
private artifactService?;
|
|
4145
4064
|
private agentType;
|
|
4146
4065
|
private existingSession?;
|
|
4066
|
+
private existingAgent?;
|
|
4067
|
+
private definitionLocked;
|
|
4068
|
+
private warnedMethods;
|
|
4069
|
+
private logger;
|
|
4147
4070
|
/**
|
|
4148
4071
|
* Private constructor - use static create() method
|
|
4149
4072
|
*/
|
|
@@ -4222,6 +4145,11 @@ declare class AgentBuilder {
|
|
|
4222
4145
|
* @returns This builder instance for chaining
|
|
4223
4146
|
*/
|
|
4224
4147
|
withAfterAgentCallback(callback: AfterAgentCallback): this;
|
|
4148
|
+
/**
|
|
4149
|
+
* Provide an already constructed agent instance. Further definition-mutating calls
|
|
4150
|
+
* (model/tools/instruction/etc.) will be ignored with a dev warning.
|
|
4151
|
+
*/
|
|
4152
|
+
withAgent(agent: BaseAgent): this;
|
|
4225
4153
|
/**
|
|
4226
4154
|
* Configure as a sequential agent
|
|
4227
4155
|
* @param subAgents Sub-agents to execute in sequence
|
|
@@ -4319,66 +4247,70 @@ declare class AgentBuilder {
|
|
|
4319
4247
|
* @returns Enhanced runner with simplified API
|
|
4320
4248
|
*/
|
|
4321
4249
|
private createEnhancedRunner;
|
|
4250
|
+
/**
|
|
4251
|
+
* Warn (once per method) if the definition has been locked by withAgent().
|
|
4252
|
+
*/
|
|
4253
|
+
private warnIfLocked;
|
|
4322
4254
|
}
|
|
4323
4255
|
|
|
4324
|
-
type index$
|
|
4325
|
-
type index$
|
|
4326
|
-
type index$
|
|
4327
|
-
type index$
|
|
4328
|
-
declare const index$
|
|
4329
|
-
type index$
|
|
4330
|
-
type index$
|
|
4331
|
-
type index$
|
|
4332
|
-
type index$
|
|
4333
|
-
declare const index$
|
|
4334
|
-
type index$
|
|
4335
|
-
type index$
|
|
4336
|
-
type index$
|
|
4337
|
-
type index$
|
|
4338
|
-
type index$
|
|
4339
|
-
declare const index$
|
|
4340
|
-
type index$
|
|
4341
|
-
type index$
|
|
4342
|
-
type index$
|
|
4343
|
-
type index$
|
|
4344
|
-
declare const index$
|
|
4345
|
-
type index$
|
|
4346
|
-
declare const index$
|
|
4347
|
-
type index$
|
|
4348
|
-
type index$
|
|
4349
|
-
type index$
|
|
4350
|
-
declare const index$
|
|
4351
|
-
type index$
|
|
4352
|
-
type index$
|
|
4353
|
-
declare const index$
|
|
4354
|
-
type index$
|
|
4355
|
-
declare const index$
|
|
4356
|
-
type index$
|
|
4357
|
-
type index$
|
|
4358
|
-
type index$
|
|
4359
|
-
declare const index$
|
|
4360
|
-
type index$
|
|
4361
|
-
type index$
|
|
4362
|
-
declare const index$
|
|
4363
|
-
type index$
|
|
4364
|
-
declare const index$
|
|
4365
|
-
type index$
|
|
4366
|
-
declare const index$
|
|
4367
|
-
type index$
|
|
4368
|
-
type index$
|
|
4369
|
-
type index$
|
|
4370
|
-
type index$
|
|
4371
|
-
type index$
|
|
4372
|
-
type index$
|
|
4373
|
-
type index$
|
|
4374
|
-
type index$
|
|
4375
|
-
declare const index$
|
|
4376
|
-
type index$
|
|
4377
|
-
declare const index$
|
|
4378
|
-
declare const index$
|
|
4379
|
-
declare const index$
|
|
4380
|
-
declare namespace index$
|
|
4381
|
-
export { type index$
|
|
4256
|
+
type index$5_AfterAgentCallback = AfterAgentCallback;
|
|
4257
|
+
type index$5_AfterModelCallback = AfterModelCallback;
|
|
4258
|
+
type index$5_AfterToolCallback = AfterToolCallback;
|
|
4259
|
+
type index$5_AgentBuilder = AgentBuilder;
|
|
4260
|
+
declare const index$5_AgentBuilder: typeof AgentBuilder;
|
|
4261
|
+
type index$5_AgentBuilderConfig = AgentBuilderConfig;
|
|
4262
|
+
type index$5_AgentBuilderWithSchema<T> = AgentBuilderWithSchema<T>;
|
|
4263
|
+
type index$5_AgentType = AgentType;
|
|
4264
|
+
type index$5_BaseAgent = BaseAgent;
|
|
4265
|
+
declare const index$5_BaseAgent: typeof BaseAgent;
|
|
4266
|
+
type index$5_BeforeAgentCallback = BeforeAgentCallback;
|
|
4267
|
+
type index$5_BeforeModelCallback = BeforeModelCallback;
|
|
4268
|
+
type index$5_BeforeToolCallback = BeforeToolCallback;
|
|
4269
|
+
type index$5_BuiltAgent<T = string> = BuiltAgent<T>;
|
|
4270
|
+
type index$5_CallbackContext = CallbackContext;
|
|
4271
|
+
declare const index$5_CallbackContext: typeof CallbackContext;
|
|
4272
|
+
type index$5_EnhancedRunner<T = string> = EnhancedRunner<T>;
|
|
4273
|
+
type index$5_FullMessage = FullMessage;
|
|
4274
|
+
type index$5_InstructionProvider = InstructionProvider;
|
|
4275
|
+
type index$5_InvocationContext = InvocationContext;
|
|
4276
|
+
declare const index$5_InvocationContext: typeof InvocationContext;
|
|
4277
|
+
type index$5_LangGraphAgent = LangGraphAgent;
|
|
4278
|
+
declare const index$5_LangGraphAgent: typeof LangGraphAgent;
|
|
4279
|
+
type index$5_LangGraphAgentConfig = LangGraphAgentConfig;
|
|
4280
|
+
type index$5_LangGraphNode = LangGraphNode;
|
|
4281
|
+
type index$5_LlmAgent<T extends BaseLlm = BaseLlm> = LlmAgent<T>;
|
|
4282
|
+
declare const index$5_LlmAgent: typeof LlmAgent;
|
|
4283
|
+
type index$5_LlmAgentConfig<T extends BaseLlm = BaseLlm> = LlmAgentConfig<T>;
|
|
4284
|
+
type index$5_LlmCallsLimitExceededError = LlmCallsLimitExceededError;
|
|
4285
|
+
declare const index$5_LlmCallsLimitExceededError: typeof LlmCallsLimitExceededError;
|
|
4286
|
+
type index$5_LoopAgent = LoopAgent;
|
|
4287
|
+
declare const index$5_LoopAgent: typeof LoopAgent;
|
|
4288
|
+
type index$5_LoopAgentConfig = LoopAgentConfig;
|
|
4289
|
+
type index$5_MessagePart = MessagePart;
|
|
4290
|
+
type index$5_ParallelAgent = ParallelAgent;
|
|
4291
|
+
declare const index$5_ParallelAgent: typeof ParallelAgent;
|
|
4292
|
+
type index$5_ParallelAgentConfig = ParallelAgentConfig;
|
|
4293
|
+
type index$5_ReadonlyContext = ReadonlyContext;
|
|
4294
|
+
declare const index$5_ReadonlyContext: typeof ReadonlyContext;
|
|
4295
|
+
type index$5_RunConfig = RunConfig;
|
|
4296
|
+
declare const index$5_RunConfig: typeof RunConfig;
|
|
4297
|
+
type index$5_SequentialAgent = SequentialAgent;
|
|
4298
|
+
declare const index$5_SequentialAgent: typeof SequentialAgent;
|
|
4299
|
+
type index$5_SequentialAgentConfig = SequentialAgentConfig;
|
|
4300
|
+
type index$5_SessionOptions = SessionOptions;
|
|
4301
|
+
type index$5_SingleAfterModelCallback = SingleAfterModelCallback;
|
|
4302
|
+
type index$5_SingleAfterToolCallback = SingleAfterToolCallback;
|
|
4303
|
+
type index$5_SingleAgentCallback = SingleAgentCallback;
|
|
4304
|
+
type index$5_SingleBeforeModelCallback = SingleBeforeModelCallback;
|
|
4305
|
+
type index$5_SingleBeforeToolCallback = SingleBeforeToolCallback;
|
|
4306
|
+
type index$5_StreamingMode = StreamingMode;
|
|
4307
|
+
declare const index$5_StreamingMode: typeof StreamingMode;
|
|
4308
|
+
type index$5_ToolUnion = ToolUnion;
|
|
4309
|
+
declare const index$5_createBranchContextForSubAgent: typeof createBranchContextForSubAgent;
|
|
4310
|
+
declare const index$5_mergeAgentRun: typeof mergeAgentRun;
|
|
4311
|
+
declare const index$5_newInvocationContextId: typeof newInvocationContextId;
|
|
4312
|
+
declare namespace index$5 {
|
|
4313
|
+
export { type index$5_AfterAgentCallback as AfterAgentCallback, type index$5_AfterModelCallback as AfterModelCallback, type index$5_AfterToolCallback as AfterToolCallback, LlmAgent as Agent, index$5_AgentBuilder as AgentBuilder, type index$5_AgentBuilderConfig as AgentBuilderConfig, type index$5_AgentBuilderWithSchema as AgentBuilderWithSchema, type index$5_AgentType as AgentType, index$5_BaseAgent as BaseAgent, type index$5_BeforeAgentCallback as BeforeAgentCallback, type index$5_BeforeModelCallback as BeforeModelCallback, type index$5_BeforeToolCallback as BeforeToolCallback, type index$5_BuiltAgent as BuiltAgent, index$5_CallbackContext as CallbackContext, type index$5_EnhancedRunner as EnhancedRunner, type index$5_FullMessage as FullMessage, type index$5_InstructionProvider as InstructionProvider, index$5_InvocationContext as InvocationContext, index$5_LangGraphAgent as LangGraphAgent, type index$5_LangGraphAgentConfig as LangGraphAgentConfig, type index$5_LangGraphNode as LangGraphNode, index$5_LlmAgent as LlmAgent, type index$5_LlmAgentConfig as LlmAgentConfig, index$5_LlmCallsLimitExceededError as LlmCallsLimitExceededError, index$5_LoopAgent as LoopAgent, type index$5_LoopAgentConfig as LoopAgentConfig, type index$5_MessagePart as MessagePart, index$5_ParallelAgent as ParallelAgent, type index$5_ParallelAgentConfig as ParallelAgentConfig, index$5_ReadonlyContext as ReadonlyContext, index$5_RunConfig as RunConfig, index$5_SequentialAgent as SequentialAgent, type index$5_SequentialAgentConfig as SequentialAgentConfig, type index$5_SessionOptions as SessionOptions, type index$5_SingleAfterModelCallback as SingleAfterModelCallback, type index$5_SingleAfterToolCallback as SingleAfterToolCallback, type index$5_SingleAgentCallback as SingleAgentCallback, type index$5_SingleBeforeModelCallback as SingleBeforeModelCallback, type index$5_SingleBeforeToolCallback as SingleBeforeToolCallback, index$5_StreamingMode as StreamingMode, type index$5_ToolUnion as ToolUnion, index$5_createBranchContextForSubAgent as createBranchContextForSubAgent, index$5_mergeAgentRun as mergeAgentRun, index$5_newInvocationContextId as newInvocationContextId };
|
|
4382
4314
|
}
|
|
4383
4315
|
|
|
4384
4316
|
/**
|
|
@@ -4430,10 +4362,10 @@ declare class InMemoryMemoryService implements BaseMemoryService {
|
|
|
4430
4362
|
* Memory Services for the Agent Development Kit
|
|
4431
4363
|
*/
|
|
4432
4364
|
|
|
4433
|
-
type index$
|
|
4434
|
-
declare const index$
|
|
4435
|
-
declare namespace index$
|
|
4436
|
-
export { index$
|
|
4365
|
+
type index$4_InMemoryMemoryService = InMemoryMemoryService;
|
|
4366
|
+
declare const index$4_InMemoryMemoryService: typeof InMemoryMemoryService;
|
|
4367
|
+
declare namespace index$4 {
|
|
4368
|
+
export { index$4_InMemoryMemoryService as InMemoryMemoryService };
|
|
4437
4369
|
}
|
|
4438
4370
|
|
|
4439
4371
|
/**
|
|
@@ -4642,25 +4574,25 @@ declare function createDatabaseSessionService(databaseUrl: string, options?: any
|
|
|
4642
4574
|
* Sessions module exports
|
|
4643
4575
|
*/
|
|
4644
4576
|
|
|
4645
|
-
type index$
|
|
4646
|
-
declare const index$
|
|
4647
|
-
type index$
|
|
4648
|
-
declare const index$
|
|
4649
|
-
type index$
|
|
4650
|
-
type index$
|
|
4651
|
-
declare const index$
|
|
4652
|
-
type index$
|
|
4653
|
-
type index$
|
|
4654
|
-
type index$
|
|
4655
|
-
declare const index$
|
|
4656
|
-
type index$
|
|
4657
|
-
declare const index$
|
|
4658
|
-
declare const index$
|
|
4659
|
-
declare const index$
|
|
4660
|
-
declare const index$
|
|
4661
|
-
declare const index$
|
|
4662
|
-
declare namespace index$
|
|
4663
|
-
export { index$
|
|
4577
|
+
type index$3_BaseSessionService = BaseSessionService;
|
|
4578
|
+
declare const index$3_BaseSessionService: typeof BaseSessionService;
|
|
4579
|
+
type index$3_DatabaseSessionService = DatabaseSessionService;
|
|
4580
|
+
declare const index$3_DatabaseSessionService: typeof DatabaseSessionService;
|
|
4581
|
+
type index$3_GetSessionConfig = GetSessionConfig;
|
|
4582
|
+
type index$3_InMemorySessionService = InMemorySessionService;
|
|
4583
|
+
declare const index$3_InMemorySessionService: typeof InMemorySessionService;
|
|
4584
|
+
type index$3_ListSessionsResponse = ListSessionsResponse;
|
|
4585
|
+
type index$3_Session = Session;
|
|
4586
|
+
type index$3_State = State;
|
|
4587
|
+
declare const index$3_State: typeof State;
|
|
4588
|
+
type index$3_VertexAiSessionService = VertexAiSessionService;
|
|
4589
|
+
declare const index$3_VertexAiSessionService: typeof VertexAiSessionService;
|
|
4590
|
+
declare const index$3_createDatabaseSessionService: typeof createDatabaseSessionService;
|
|
4591
|
+
declare const index$3_createMysqlSessionService: typeof createMysqlSessionService;
|
|
4592
|
+
declare const index$3_createPostgresSessionService: typeof createPostgresSessionService;
|
|
4593
|
+
declare const index$3_createSqliteSessionService: typeof createSqliteSessionService;
|
|
4594
|
+
declare namespace index$3 {
|
|
4595
|
+
export { index$3_BaseSessionService as BaseSessionService, index$3_DatabaseSessionService as DatabaseSessionService, type index$3_GetSessionConfig as GetSessionConfig, index$3_InMemorySessionService as InMemorySessionService, type index$3_ListSessionsResponse as ListSessionsResponse, type index$3_Session as Session, index$3_State as State, index$3_VertexAiSessionService as VertexAiSessionService, index$3_createDatabaseSessionService as createDatabaseSessionService, index$3_createMysqlSessionService as createMysqlSessionService, index$3_createPostgresSessionService as createPostgresSessionService, index$3_createSqliteSessionService as createSqliteSessionService };
|
|
4664
4596
|
}
|
|
4665
4597
|
|
|
4666
4598
|
declare class GcsArtifactService implements BaseArtifactService {
|
|
@@ -4740,12 +4672,12 @@ declare class InMemoryArtifactService implements BaseArtifactService {
|
|
|
4740
4672
|
}): Promise<number[]>;
|
|
4741
4673
|
}
|
|
4742
4674
|
|
|
4743
|
-
type index$
|
|
4744
|
-
declare const index$
|
|
4745
|
-
type index$
|
|
4746
|
-
declare const index$
|
|
4747
|
-
declare namespace index$
|
|
4748
|
-
export { index$
|
|
4675
|
+
type index$2_Event = Event;
|
|
4676
|
+
declare const index$2_Event: typeof Event;
|
|
4677
|
+
type index$2_EventActions = EventActions;
|
|
4678
|
+
declare const index$2_EventActions: typeof EventActions;
|
|
4679
|
+
declare namespace index$2 {
|
|
4680
|
+
export { index$2_Event as Event, index$2_EventActions as EventActions };
|
|
4749
4681
|
}
|
|
4750
4682
|
|
|
4751
4683
|
declare abstract class BaseLlmFlow {
|
|
@@ -5017,28 +4949,28 @@ declare function handleFunctionCallsLive(invocationContext: InvocationContext, f
|
|
|
5017
4949
|
*/
|
|
5018
4950
|
declare function mergeParallelFunctionResponseEvents(functionResponseEvents: Event[]): Event;
|
|
5019
4951
|
|
|
5020
|
-
declare const
|
|
5021
|
-
type
|
|
5022
|
-
declare const
|
|
5023
|
-
type
|
|
5024
|
-
declare const
|
|
5025
|
-
type
|
|
5026
|
-
declare const
|
|
5027
|
-
type
|
|
5028
|
-
declare const
|
|
5029
|
-
declare const
|
|
5030
|
-
type
|
|
5031
|
-
declare const
|
|
5032
|
-
declare const
|
|
5033
|
-
declare const
|
|
5034
|
-
declare const
|
|
5035
|
-
declare const
|
|
5036
|
-
declare const
|
|
5037
|
-
declare const
|
|
5038
|
-
declare const
|
|
5039
|
-
declare const
|
|
5040
|
-
declare namespace index {
|
|
5041
|
-
export {
|
|
4952
|
+
declare const index$1_AF_FUNCTION_CALL_ID_PREFIX: typeof AF_FUNCTION_CALL_ID_PREFIX;
|
|
4953
|
+
type index$1_AutoFlow = AutoFlow;
|
|
4954
|
+
declare const index$1_AutoFlow: typeof AutoFlow;
|
|
4955
|
+
type index$1_BaseLlmFlow = BaseLlmFlow;
|
|
4956
|
+
declare const index$1_BaseLlmFlow: typeof BaseLlmFlow;
|
|
4957
|
+
type index$1_BaseLlmRequestProcessor = BaseLlmRequestProcessor;
|
|
4958
|
+
declare const index$1_BaseLlmRequestProcessor: typeof BaseLlmRequestProcessor;
|
|
4959
|
+
type index$1_BaseLlmResponseProcessor = BaseLlmResponseProcessor;
|
|
4960
|
+
declare const index$1_BaseLlmResponseProcessor: typeof BaseLlmResponseProcessor;
|
|
4961
|
+
declare const index$1_REQUEST_EUC_FUNCTION_CALL_NAME: typeof REQUEST_EUC_FUNCTION_CALL_NAME;
|
|
4962
|
+
type index$1_SingleFlow = SingleFlow;
|
|
4963
|
+
declare const index$1_SingleFlow: typeof SingleFlow;
|
|
4964
|
+
declare const index$1_generateAuthEvent: typeof generateAuthEvent;
|
|
4965
|
+
declare const index$1_generateClientFunctionCallId: typeof generateClientFunctionCallId;
|
|
4966
|
+
declare const index$1_getLongRunningFunctionCalls: typeof getLongRunningFunctionCalls;
|
|
4967
|
+
declare const index$1_handleFunctionCallsAsync: typeof handleFunctionCallsAsync;
|
|
4968
|
+
declare const index$1_handleFunctionCallsLive: typeof handleFunctionCallsLive;
|
|
4969
|
+
declare const index$1_mergeParallelFunctionResponseEvents: typeof mergeParallelFunctionResponseEvents;
|
|
4970
|
+
declare const index$1_populateClientFunctionCallId: typeof populateClientFunctionCallId;
|
|
4971
|
+
declare const index$1_removeClientFunctionCallId: typeof removeClientFunctionCallId;
|
|
4972
|
+
declare namespace index$1 {
|
|
4973
|
+
export { index$1_AF_FUNCTION_CALL_ID_PREFIX as AF_FUNCTION_CALL_ID_PREFIX, index$1_AutoFlow as AutoFlow, index$1_BaseLlmFlow as BaseLlmFlow, index$1_BaseLlmRequestProcessor as BaseLlmRequestProcessor, index$1_BaseLlmResponseProcessor as BaseLlmResponseProcessor, index$1_REQUEST_EUC_FUNCTION_CALL_NAME as REQUEST_EUC_FUNCTION_CALL_NAME, index$1_SingleFlow as SingleFlow, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, index$1_generateAuthEvent as generateAuthEvent, index$1_generateClientFunctionCallId as generateClientFunctionCallId, index$1_getLongRunningFunctionCalls as getLongRunningFunctionCalls, index$1_handleFunctionCallsAsync as handleFunctionCallsAsync, index$1_handleFunctionCallsLive as handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, requestProcessor$4 as instructionsRequestProcessor, index$1_mergeParallelFunctionResponseEvents as mergeParallelFunctionResponseEvents, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, index$1_populateClientFunctionCallId as populateClientFunctionCallId, index$1_removeClientFunctionCallId as removeClientFunctionCallId };
|
|
5042
4974
|
}
|
|
5043
4975
|
|
|
5044
4976
|
/**
|
|
@@ -5153,6 +5085,265 @@ declare class PlanReActPlanner extends BasePlanner {
|
|
|
5153
5085
|
private _buildNlPlannerInstruction;
|
|
5154
5086
|
}
|
|
5155
5087
|
|
|
5088
|
+
interface IntermediateData {
|
|
5089
|
+
toolUses: FunctionCall[];
|
|
5090
|
+
intermediateResponses: Array<[string, Part[]]>;
|
|
5091
|
+
}
|
|
5092
|
+
interface Invocation {
|
|
5093
|
+
invocationId?: string;
|
|
5094
|
+
userContent: Content;
|
|
5095
|
+
finalResponse?: Content;
|
|
5096
|
+
intermediateData?: IntermediateData;
|
|
5097
|
+
creationTimestamp: number;
|
|
5098
|
+
}
|
|
5099
|
+
interface SessionInput {
|
|
5100
|
+
appName: string;
|
|
5101
|
+
userId: string;
|
|
5102
|
+
state: Record<string, any>;
|
|
5103
|
+
}
|
|
5104
|
+
interface EvalCase {
|
|
5105
|
+
evalId: string;
|
|
5106
|
+
conversation: Invocation[];
|
|
5107
|
+
sessionInput?: SessionInput;
|
|
5108
|
+
}
|
|
5109
|
+
|
|
5110
|
+
declare enum PrebuiltMetrics {
|
|
5111
|
+
TOOL_TRAJECTORY_AVG_SCORE = "tool_trajectory_avg_score",
|
|
5112
|
+
RESPONSE_EVALUATION_SCORE = "response_evaluation_score",
|
|
5113
|
+
RESPONSE_MATCH_SCORE = "response_match_score",
|
|
5114
|
+
SAFETY_V1 = "safety_v1",
|
|
5115
|
+
FINAL_RESPONSE_MATCH_V2 = "final_response_match_v2",
|
|
5116
|
+
TOOL_TRAJECTORY_SCORE = "tool_trajectory_score",
|
|
5117
|
+
SAFETY = "safety",
|
|
5118
|
+
RESPONSE_MATCH = "response_match"
|
|
5119
|
+
}
|
|
5120
|
+
interface JudgeModelOptions {
|
|
5121
|
+
judgeModel: string;
|
|
5122
|
+
judgeModelConfig?: GenerateContentConfig;
|
|
5123
|
+
numSamples?: number;
|
|
5124
|
+
}
|
|
5125
|
+
interface EvalMetric {
|
|
5126
|
+
metricName: string;
|
|
5127
|
+
threshold: number;
|
|
5128
|
+
judgeModelOptions?: JudgeModelOptions;
|
|
5129
|
+
}
|
|
5130
|
+
interface EvalMetricResult extends EvalMetric {
|
|
5131
|
+
score?: number;
|
|
5132
|
+
evalStatus: EvalStatus;
|
|
5133
|
+
}
|
|
5134
|
+
interface EvalMetricResultPerInvocation {
|
|
5135
|
+
actualInvocation: Invocation;
|
|
5136
|
+
expectedInvocation: Invocation;
|
|
5137
|
+
evalMetricResults: EvalMetricResult[];
|
|
5138
|
+
}
|
|
5139
|
+
interface Interval {
|
|
5140
|
+
minValue: number;
|
|
5141
|
+
openAtMin: boolean;
|
|
5142
|
+
maxValue: number;
|
|
5143
|
+
openAtMax: boolean;
|
|
5144
|
+
}
|
|
5145
|
+
interface MetricValueInfo {
|
|
5146
|
+
interval?: Interval;
|
|
5147
|
+
}
|
|
5148
|
+
interface MetricInfo {
|
|
5149
|
+
metricName?: string;
|
|
5150
|
+
description?: string;
|
|
5151
|
+
defaultThreshold?: number;
|
|
5152
|
+
experimental?: boolean;
|
|
5153
|
+
metricValueInfo?: MetricValueInfo;
|
|
5154
|
+
}
|
|
5155
|
+
interface EvaluateConfig {
|
|
5156
|
+
evalMetrics: EvalMetric[];
|
|
5157
|
+
parallelism?: number;
|
|
5158
|
+
}
|
|
5159
|
+
|
|
5160
|
+
declare enum EvalStatus {
|
|
5161
|
+
PASSED = 1,
|
|
5162
|
+
FAILED = 2,
|
|
5163
|
+
NOT_EVALUATED = 3
|
|
5164
|
+
}
|
|
5165
|
+
interface PerInvocationResult {
|
|
5166
|
+
actualInvocation: Invocation;
|
|
5167
|
+
expectedInvocation: Invocation;
|
|
5168
|
+
score?: number;
|
|
5169
|
+
evalStatus: EvalStatus;
|
|
5170
|
+
}
|
|
5171
|
+
interface EvaluationResult {
|
|
5172
|
+
overallScore?: number;
|
|
5173
|
+
overallEvalStatus: EvalStatus;
|
|
5174
|
+
perInvocationResults: PerInvocationResult[];
|
|
5175
|
+
}
|
|
5176
|
+
declare abstract class Evaluator {
|
|
5177
|
+
protected readonly metric: EvalMetric;
|
|
5178
|
+
constructor(metric: EvalMetric);
|
|
5179
|
+
abstract evaluateInvocations(actualInvocations: Invocation[], expectedInvocations: Invocation[]): Promise<EvaluationResult>;
|
|
5180
|
+
static getMetricInfo(metricName?: string): MetricInfo;
|
|
5181
|
+
}
|
|
5182
|
+
|
|
5183
|
+
interface EvalSet {
|
|
5184
|
+
evalSetId: string;
|
|
5185
|
+
name?: string;
|
|
5186
|
+
description?: string;
|
|
5187
|
+
evalCases: EvalCase[];
|
|
5188
|
+
creationTimestamp: number;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
interface EvalCaseResult {
|
|
5192
|
+
evalSetId: string;
|
|
5193
|
+
evalId: string;
|
|
5194
|
+
finalEvalStatus: EvalStatus;
|
|
5195
|
+
overallEvalMetricResults: EvalMetricResult[];
|
|
5196
|
+
evalMetricResultPerInvocation: EvalMetricResultPerInvocation[];
|
|
5197
|
+
sessionId: string;
|
|
5198
|
+
sessionDetails?: Session;
|
|
5199
|
+
userId?: string;
|
|
5200
|
+
}
|
|
5201
|
+
interface EvalSetResult {
|
|
5202
|
+
evalSetResultId: string;
|
|
5203
|
+
evalSetResultName?: string;
|
|
5204
|
+
evalSetId: string;
|
|
5205
|
+
evalCaseResults: EvalCaseResult[];
|
|
5206
|
+
creationTimestamp: number;
|
|
5207
|
+
}
|
|
5208
|
+
declare class EvalResult implements EvalSetResult {
|
|
5209
|
+
evalSetResultId: string;
|
|
5210
|
+
evalSetResultName?: string;
|
|
5211
|
+
evalSetId: string;
|
|
5212
|
+
evalCaseResults: EvalCaseResult[];
|
|
5213
|
+
creationTimestamp: number;
|
|
5214
|
+
constructor(init: Partial<EvalSetResult>);
|
|
5215
|
+
}
|
|
5216
|
+
|
|
5217
|
+
declare class AgentEvaluator {
|
|
5218
|
+
static findConfigForTestFile(testFile: string): Promise<Record<string, number>>;
|
|
5219
|
+
static evaluateEvalSet(agent: BaseAgent, evalSet: EvalSet, criteria: Record<string, number>, numRuns?: number, printDetailedResults?: boolean): Promise<void>;
|
|
5220
|
+
static evaluate(agent: BaseAgent, evalDatasetFilePathOrDir: string, numRuns?: number, initialSessionFile?: string): Promise<void>;
|
|
5221
|
+
static migrateEvalDataToNewSchema(oldEvalDataFile: string, newEvalDataFile: string, initialSessionFile?: string): Promise<void>;
|
|
5222
|
+
private static _findTestFilesRecursively;
|
|
5223
|
+
private static _loadEvalSetFromFile;
|
|
5224
|
+
private static _getEvalSetFromOldFormat;
|
|
5225
|
+
private static _getInitialSession;
|
|
5226
|
+
private static _loadDataset;
|
|
5227
|
+
private static _validateInput;
|
|
5228
|
+
private static _printDetails;
|
|
5229
|
+
private static _convertContentToText;
|
|
5230
|
+
private static _convertToolCallsToText;
|
|
5231
|
+
private static _getEvalResultsByEvalId;
|
|
5232
|
+
private static _getEvalMetricResultsWithInvocation;
|
|
5233
|
+
private static _processMetricsAndGetFailures;
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5236
|
+
declare abstract class BaseEvalService {
|
|
5237
|
+
abstract performInference(request: {
|
|
5238
|
+
evalSetId: string;
|
|
5239
|
+
evalCases: EvalSet[];
|
|
5240
|
+
}): AsyncGenerator<Invocation[], void>;
|
|
5241
|
+
abstract evaluate(request: {
|
|
5242
|
+
inferenceResults: Invocation[][];
|
|
5243
|
+
evaluateConfig: EvaluateConfig;
|
|
5244
|
+
}): AsyncGenerator<EvalSetResult, void>;
|
|
5245
|
+
evaluateSession(session: {
|
|
5246
|
+
evalSetId: string;
|
|
5247
|
+
evalCases: EvalSet[];
|
|
5248
|
+
evaluateConfig: EvaluateConfig;
|
|
5249
|
+
}): AsyncGenerator<EvalSetResult, void>;
|
|
5250
|
+
}
|
|
5251
|
+
|
|
5252
|
+
declare class LocalEvalService extends BaseEvalService {
|
|
5253
|
+
private readonly agent;
|
|
5254
|
+
private readonly parallelism;
|
|
5255
|
+
private runner;
|
|
5256
|
+
constructor(agent: BaseAgent, parallelism?: number);
|
|
5257
|
+
private initializeRunner;
|
|
5258
|
+
performInference(request: {
|
|
5259
|
+
evalSetId: string;
|
|
5260
|
+
evalCases: EvalSet[];
|
|
5261
|
+
}): AsyncGenerator<Invocation[], void>;
|
|
5262
|
+
evaluate(request: {
|
|
5263
|
+
inferenceResults: Invocation[][];
|
|
5264
|
+
evaluateConfig: EvaluateConfig;
|
|
5265
|
+
}): AsyncGenerator<EvalResult, void>;
|
|
5266
|
+
private runInference;
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
declare class TrajectoryEvaluator extends Evaluator {
|
|
5270
|
+
static getMetricInfo(): MetricInfo;
|
|
5271
|
+
evaluateInvocations(actualInvocations: Invocation[], expectedInvocations: Invocation[]): Promise<EvaluationResult>;
|
|
5272
|
+
private areToolCallsEqual;
|
|
5273
|
+
private isToolCallEqual;
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
declare class RougeEvaluator extends Evaluator {
|
|
5277
|
+
private evalMetric;
|
|
5278
|
+
constructor(evalMetric: EvalMetric);
|
|
5279
|
+
static getMetricInfo(): MetricInfo;
|
|
5280
|
+
evaluateInvocations(actualInvocations: Invocation[], expectedInvocations: Invocation[]): Promise<EvaluationResult>;
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5283
|
+
declare enum Label {
|
|
5284
|
+
VALID = "valid",
|
|
5285
|
+
INVALID = "invalid",
|
|
5286
|
+
NOT_FOUND = "not_found"
|
|
5287
|
+
}
|
|
5288
|
+
|
|
5289
|
+
type CritiqueParser = (response: string) => Label;
|
|
5290
|
+
declare class LlmAsJudge {
|
|
5291
|
+
sampleJudge(prompt: string, numSamples: number, critiqueParser: CritiqueParser, judgeModelOptions?: JudgeModelOptions): Promise<Label[]>;
|
|
5292
|
+
}
|
|
5293
|
+
|
|
5294
|
+
declare class FinalResponseMatchV2Evaluator extends Evaluator {
|
|
5295
|
+
private readonly llmAsJudge;
|
|
5296
|
+
constructor(evalMetric: EvalMetric, llmAsJudge?: LlmAsJudge);
|
|
5297
|
+
static getMetricInfo(): MetricInfo;
|
|
5298
|
+
evaluateInvocations(actualInvocations: Invocation[], expectedInvocations: Invocation[]): Promise<EvaluationResult>;
|
|
5299
|
+
}
|
|
5300
|
+
|
|
5301
|
+
declare class SafetyEvaluatorV1 extends Evaluator {
|
|
5302
|
+
static getMetricInfo(): MetricInfo;
|
|
5303
|
+
evaluateInvocations(actualInvocations: Invocation[], expectedInvocations: Invocation[]): Promise<EvaluationResult>;
|
|
5304
|
+
}
|
|
5305
|
+
|
|
5306
|
+
type index_AgentEvaluator = AgentEvaluator;
|
|
5307
|
+
declare const index_AgentEvaluator: typeof AgentEvaluator;
|
|
5308
|
+
type index_EvalCase = EvalCase;
|
|
5309
|
+
type index_EvalCaseResult = EvalCaseResult;
|
|
5310
|
+
type index_EvalMetric = EvalMetric;
|
|
5311
|
+
type index_EvalMetricResult = EvalMetricResult;
|
|
5312
|
+
type index_EvalMetricResultPerInvocation = EvalMetricResultPerInvocation;
|
|
5313
|
+
type index_EvalResult = EvalResult;
|
|
5314
|
+
declare const index_EvalResult: typeof EvalResult;
|
|
5315
|
+
type index_EvalSet = EvalSet;
|
|
5316
|
+
type index_EvalSetResult = EvalSetResult;
|
|
5317
|
+
type index_EvalStatus = EvalStatus;
|
|
5318
|
+
declare const index_EvalStatus: typeof EvalStatus;
|
|
5319
|
+
type index_EvaluateConfig = EvaluateConfig;
|
|
5320
|
+
type index_EvaluationResult = EvaluationResult;
|
|
5321
|
+
type index_Evaluator = Evaluator;
|
|
5322
|
+
declare const index_Evaluator: typeof Evaluator;
|
|
5323
|
+
type index_FinalResponseMatchV2Evaluator = FinalResponseMatchV2Evaluator;
|
|
5324
|
+
declare const index_FinalResponseMatchV2Evaluator: typeof FinalResponseMatchV2Evaluator;
|
|
5325
|
+
type index_IntermediateData = IntermediateData;
|
|
5326
|
+
type index_Interval = Interval;
|
|
5327
|
+
type index_Invocation = Invocation;
|
|
5328
|
+
type index_JudgeModelOptions = JudgeModelOptions;
|
|
5329
|
+
type index_LocalEvalService = LocalEvalService;
|
|
5330
|
+
declare const index_LocalEvalService: typeof LocalEvalService;
|
|
5331
|
+
type index_MetricInfo = MetricInfo;
|
|
5332
|
+
type index_MetricValueInfo = MetricValueInfo;
|
|
5333
|
+
type index_PerInvocationResult = PerInvocationResult;
|
|
5334
|
+
type index_PrebuiltMetrics = PrebuiltMetrics;
|
|
5335
|
+
declare const index_PrebuiltMetrics: typeof PrebuiltMetrics;
|
|
5336
|
+
type index_RougeEvaluator = RougeEvaluator;
|
|
5337
|
+
declare const index_RougeEvaluator: typeof RougeEvaluator;
|
|
5338
|
+
type index_SafetyEvaluatorV1 = SafetyEvaluatorV1;
|
|
5339
|
+
declare const index_SafetyEvaluatorV1: typeof SafetyEvaluatorV1;
|
|
5340
|
+
type index_SessionInput = SessionInput;
|
|
5341
|
+
type index_TrajectoryEvaluator = TrajectoryEvaluator;
|
|
5342
|
+
declare const index_TrajectoryEvaluator: typeof TrajectoryEvaluator;
|
|
5343
|
+
declare namespace index {
|
|
5344
|
+
export { index_AgentEvaluator as AgentEvaluator, type index_EvalCase as EvalCase, type index_EvalCaseResult as EvalCaseResult, type index_EvalMetric as EvalMetric, type index_EvalMetricResult as EvalMetricResult, type index_EvalMetricResultPerInvocation as EvalMetricResultPerInvocation, index_EvalResult as EvalResult, type index_EvalSet as EvalSet, type index_EvalSetResult as EvalSetResult, index_EvalStatus as EvalStatus, type index_EvaluateConfig as EvaluateConfig, type index_EvaluationResult as EvaluationResult, index_Evaluator as Evaluator, index_FinalResponseMatchV2Evaluator as FinalResponseMatchV2Evaluator, type index_IntermediateData as IntermediateData, type index_Interval as Interval, type index_Invocation as Invocation, type index_JudgeModelOptions as JudgeModelOptions, index_LocalEvalService as LocalEvalService, type index_MetricInfo as MetricInfo, type index_MetricValueInfo as MetricValueInfo, type index_PerInvocationResult as PerInvocationResult, index_PrebuiltMetrics as PrebuiltMetrics, index_RougeEvaluator as RougeEvaluator, index_SafetyEvaluatorV1 as SafetyEvaluatorV1, type index_SessionInput as SessionInput, index_TrajectoryEvaluator as TrajectoryEvaluator };
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5156
5347
|
/**
|
|
5157
5348
|
* Find function call event if last event is function response.
|
|
5158
5349
|
*/
|
|
@@ -5320,4 +5511,4 @@ declare const traceLlmCall: (invocationContext: InvocationContext, eventId: stri
|
|
|
5320
5511
|
|
|
5321
5512
|
declare const VERSION = "0.1.0";
|
|
5322
5513
|
|
|
5323
|
-
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentTool, type AgentToolConfig, type AgentType, index$
|
|
5514
|
+
export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, AgentTool, type AgentToolConfig, type AgentType, index$5 as Agents, AiSdkLlm, AnthropicLlm, ApiKeyCredential, ApiKeyScheme, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, AuthTool, type AuthToolArguments, AutoFlow, BaseAgent, type BaseAgentType, BaseCodeExecutor, type BaseCodeExecutorConfig, BaseLLMConnection, BaseLlm, BaseLlmFlow, BaseLlmRequestProcessor, BaseLlmResponseProcessor, type BaseMemoryService, BasePlanner, BaseSessionService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EnhancedAuthConfig, type EnhancedRunner, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, index$2 as Events, ExitLoopTool, type File, FileOperationsTool, FinalResponseMatchV2Evaluator, index$1 as Flows, type FullMessage, FunctionTool, GcsArtifactService, type GetSessionConfig, GetUserChoiceTool, GoogleLlm, GoogleSearch, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, index$4 as Memory, type MessagePart, type MetricInfo, type MetricValueInfo, index$6 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, type PerInvocationResult, PlanReActPlanner, PrebuiltMetrics, REQUEST_EUC_FUNCTION_CALL_NAME, ReadonlyContext, RougeEvaluator, RunConfig, Runner, SafetyEvaluatorV1, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index$3 as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, State, StreamingMode, type TelemetryConfig, TelemetryService, type ThinkingConfig, type ToolConfig, ToolContext, type ToolUnion, index$7 as Tools, TrajectoryEvaluator, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiSessionService, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$2 as agentTransferRequestProcessor, requestProcessor$6 as basicRequestProcessor, buildFunctionDeclaration, requestProcessor as codeExecutionRequestProcessor, responseProcessor as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, generateAuthEvent, generateClientFunctionCallId, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$5 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$4 as instructionsRequestProcessor, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor$1 as nlPlanningRequestProcessor, responseProcessor$1 as nlPlanningResponseProcessor, normalizeJsonSchema, populateClientFunctionCallId, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, shutdownTelemetry, telemetryService, traceLlmCall, traceToolCall, tracer };
|