@iqai/adk 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -8,6 +8,9 @@ import { StorageOptions } from '@google-cloud/storage';
8
8
  import { Kysely, Generated } from 'kysely';
9
9
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
10
10
  import { CreateMessageRequest, CreateMessageResult, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
11
+ import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
12
+ export { ReadableSpan } from '@opentelemetry/sdk-trace-base';
13
+ export { ADK_ATTRS, ADK_SYSTEM_NAME, DEFAULTS, ENV_VARS, METRICS, OPERATIONS, SEMCONV } from './constants.mjs';
11
14
 
12
15
  /**
13
16
  * Authentication scheme types
@@ -6534,7 +6537,7 @@ interface TelemetryConfig {
6534
6537
  /** Application version (optional) */
6535
6538
  appVersion?: string;
6536
6539
  /** OTLP endpoint for traces (e.g., http://localhost:4318/v1/traces) */
6537
- otlpEndpoint: string;
6540
+ otlpEndpoint?: string;
6538
6541
  /** Custom headers for OTLP exporter */
6539
6542
  otlpHeaders?: Record<string, string>;
6540
6543
  /** Deployment environment (e.g., development, staging, production) */
@@ -6545,6 +6548,8 @@ interface TelemetryConfig {
6545
6548
  enableMetrics?: boolean;
6546
6549
  /** Enable auto-instrumentation for HTTP, databases, etc. (default: true) */
6547
6550
  enableAutoInstrumentation?: boolean;
6551
+ /** Enable debug mode (default: false). When enabled, in-memory exporter is active. */
6552
+ debug?: boolean;
6548
6553
  /** Capture message content in traces (default: true, set false for privacy) */
6549
6554
  captureMessageContent?: boolean;
6550
6555
  /** Sampling ratio for traces (0.0 to 1.0, default: 1.0 = 100%) */
@@ -6740,187 +6745,6 @@ interface TracePluginParams {
6740
6745
  invocationContext?: InvocationContext;
6741
6746
  }
6742
6747
 
6743
- /**
6744
- * Semantic Conventions and Constants
6745
- * OpenTelemetry semantic conventions for ADK telemetry
6746
- */
6747
- /**
6748
- * Standard OpenTelemetry GenAI semantic conventions
6749
- * Reference: https://opentelemetry.io/docs/specs/semconv/gen-ai/
6750
- * Version: v1.38.0 (development status)
6751
- */
6752
- declare const SEMCONV: {
6753
- readonly GEN_AI_PROVIDER_NAME: "gen_ai.provider.name";
6754
- readonly GEN_AI_OPERATION_NAME: "gen_ai.operation.name";
6755
- readonly GEN_AI_AGENT_ID: "gen_ai.agent.id";
6756
- readonly GEN_AI_AGENT_NAME: "gen_ai.agent.name";
6757
- readonly GEN_AI_AGENT_DESCRIPTION: "gen_ai.agent.description";
6758
- readonly GEN_AI_CONVERSATION_ID: "gen_ai.conversation.id";
6759
- readonly GEN_AI_TOOL_NAME: "gen_ai.tool.name";
6760
- readonly GEN_AI_TOOL_DESCRIPTION: "gen_ai.tool.description";
6761
- readonly GEN_AI_TOOL_TYPE: "gen_ai.tool.type";
6762
- readonly GEN_AI_TOOL_CALL_ID: "gen_ai.tool.call.id";
6763
- readonly GEN_AI_TOOL_CALL_ARGUMENTS: "gen_ai.tool.call.arguments";
6764
- readonly GEN_AI_TOOL_CALL_RESULT: "gen_ai.tool.call.result";
6765
- readonly GEN_AI_TOOL_DEFINITIONS: "gen_ai.tool.definitions";
6766
- readonly GEN_AI_REQUEST_MODEL: "gen_ai.request.model";
6767
- readonly GEN_AI_REQUEST_MAX_TOKENS: "gen_ai.request.max_tokens";
6768
- readonly GEN_AI_REQUEST_TEMPERATURE: "gen_ai.request.temperature";
6769
- readonly GEN_AI_REQUEST_TOP_P: "gen_ai.request.top_p";
6770
- readonly GEN_AI_REQUEST_TOP_K: "gen_ai.request.top_k";
6771
- readonly GEN_AI_REQUEST_FREQUENCY_PENALTY: "gen_ai.request.frequency_penalty";
6772
- readonly GEN_AI_REQUEST_PRESENCE_PENALTY: "gen_ai.request.presence_penalty";
6773
- readonly GEN_AI_REQUEST_STOP_SEQUENCES: "gen_ai.request.stop_sequences";
6774
- readonly GEN_AI_REQUEST_CHOICE_COUNT: "gen_ai.request.choice.count";
6775
- readonly GEN_AI_REQUEST_SEED: "gen_ai.request.seed";
6776
- readonly GEN_AI_RESPONSE_ID: "gen_ai.response.id";
6777
- readonly GEN_AI_RESPONSE_MODEL: "gen_ai.response.model";
6778
- readonly GEN_AI_RESPONSE_FINISH_REASONS: "gen_ai.response.finish_reasons";
6779
- readonly GEN_AI_OUTPUT_TYPE: "gen_ai.output.type";
6780
- readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
6781
- readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
6782
- readonly GEN_AI_SYSTEM_INSTRUCTIONS: "gen_ai.system_instructions";
6783
- readonly GEN_AI_INPUT_MESSAGES: "gen_ai.input.messages";
6784
- readonly GEN_AI_OUTPUT_MESSAGES: "gen_ai.output.messages";
6785
- readonly SERVER_ADDRESS: "server.address";
6786
- readonly SERVER_PORT: "server.port";
6787
- readonly ERROR_TYPE: "error.type";
6788
- readonly GEN_AI_DATA_SOURCE_ID: "gen_ai.data_source.id";
6789
- readonly GEN_AI_EMBEDDINGS_DIMENSION_COUNT: "gen_ai.embeddings.dimension.count";
6790
- readonly GEN_AI_REQUEST_ENCODING_FORMATS: "gen_ai.request.encoding_formats";
6791
- /**
6792
- * @deprecated Use GEN_AI_PROVIDER_NAME instead
6793
- */
6794
- readonly GEN_AI_SYSTEM: "gen_ai.system";
6795
- /**
6796
- * @deprecated Total tokens should be computed client-side from input + output
6797
- */
6798
- readonly GEN_AI_USAGE_TOTAL_TOKENS: "gen_ai.usage.total_tokens";
6799
- /**
6800
- * @deprecated Use GEN_AI_INPUT_MESSAGES or structured events instead
6801
- */
6802
- readonly GEN_AI_CONTENT_PROMPT: "gen_ai.content.prompt";
6803
- /**
6804
- * @deprecated Use GEN_AI_OUTPUT_MESSAGES or structured events instead
6805
- */
6806
- readonly GEN_AI_CONTENT_COMPLETION: "gen_ai.content.completion";
6807
- };
6808
- /**
6809
- * ADK-specific attribute namespace
6810
- * Custom attributes for IQAI ADK framework
6811
- */
6812
- declare const ADK_ATTRS: {
6813
- readonly SYSTEM_NAME: "adk.system.name";
6814
- readonly SYSTEM_VERSION: "adk.system.version";
6815
- readonly SESSION_ID: "adk.session.id";
6816
- readonly USER_ID: "adk.user.id";
6817
- readonly INVOCATION_ID: "adk.invocation.id";
6818
- readonly EVENT_ID: "adk.event.id";
6819
- readonly ENVIRONMENT: "adk.environment";
6820
- readonly AGENT_NAME: "adk.agent.name";
6821
- readonly AGENT_DESCRIPTION: "adk.agent.description";
6822
- readonly TRANSFER_SOURCE_AGENT: "adk.transfer.source_agent";
6823
- readonly TRANSFER_TARGET_AGENT: "adk.transfer.target_agent";
6824
- readonly TRANSFER_CHAIN: "adk.transfer.chain";
6825
- readonly TRANSFER_DEPTH: "adk.transfer.depth";
6826
- readonly TRANSFER_ROOT_AGENT: "adk.transfer.root_agent";
6827
- readonly TRANSFER_REASON: "adk.transfer.reason";
6828
- readonly TOOL_NAME: "adk.tool.name";
6829
- readonly TOOL_ARGS: "adk.tool.args";
6830
- readonly TOOL_RESPONSE: "adk.tool.response";
6831
- readonly TOOL_EXECUTION_ORDER: "adk.tool.execution_order";
6832
- readonly TOOL_PARALLEL_GROUP: "adk.tool.parallel_group";
6833
- readonly TOOL_RETRY_COUNT: "adk.tool.retry_count";
6834
- readonly TOOL_IS_CALLBACK_OVERRIDE: "adk.tool.is_callback_override";
6835
- readonly LLM_MODEL: "adk.llm.model";
6836
- readonly LLM_REQUEST: "adk.llm.request";
6837
- readonly LLM_RESPONSE: "adk.llm.response";
6838
- readonly LLM_STREAMING: "adk.llm.streaming";
6839
- readonly LLM_TIME_TO_FIRST_TOKEN: "adk.llm.time_to_first_token_ms";
6840
- readonly LLM_CHUNK_COUNT: "adk.llm.chunk_count";
6841
- readonly LLM_CACHED_TOKENS: "adk.llm.cached_tokens";
6842
- readonly LLM_CONTEXT_WINDOW_USED_PCT: "adk.llm.context_window_used_pct";
6843
- readonly CALLBACK_TYPE: "adk.callback.type";
6844
- readonly CALLBACK_NAME: "adk.callback.name";
6845
- readonly CALLBACK_INDEX: "adk.callback.index";
6846
- readonly ERROR_CATEGORY: "adk.error.category";
6847
- readonly ERROR_RECOVERABLE: "adk.error.recoverable";
6848
- readonly ERROR_RETRY_RECOMMENDED: "adk.error.retry_recommended";
6849
- readonly MEMORY_QUERY: "adk.memory.query";
6850
- readonly MEMORY_RESULTS_COUNT: "adk.memory.results_count";
6851
- readonly PLUGIN_NAME: "adk.plugin.name";
6852
- readonly PLUGIN_HOOK: "adk.plugin.hook";
6853
- };
6854
- /**
6855
- * Operation names for different trace operations
6856
- * Reference: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/
6857
- */
6858
- declare const OPERATIONS: {
6859
- readonly CHAT: "chat";
6860
- readonly TEXT_COMPLETION: "text_completion";
6861
- readonly GENERATE_CONTENT: "generate_content";
6862
- readonly INVOKE_AGENT: "invoke_agent";
6863
- readonly CREATE_AGENT: "create_agent";
6864
- readonly EXECUTE_TOOL: "execute_tool";
6865
- readonly TRANSFER_AGENT: "transfer_agent";
6866
- readonly EXECUTE_CALLBACK: "execute_callback";
6867
- readonly SEARCH_MEMORY: "search_memory";
6868
- readonly INSERT_MEMORY: "insert_memory";
6869
- readonly EXECUTE_PLUGIN: "execute_plugin";
6870
- /**
6871
- * @deprecated Use CHAT, TEXT_COMPLETION, or GENERATE_CONTENT instead
6872
- */
6873
- readonly CALL_LLM: "call_llm";
6874
- };
6875
- /**
6876
- * System identifier for IQAI ADK
6877
- */
6878
- declare const ADK_SYSTEM_NAME = "iqai-adk";
6879
- /**
6880
- * Environment variable names
6881
- */
6882
- declare const ENV_VARS: {
6883
- readonly CAPTURE_MESSAGE_CONTENT: "ADK_CAPTURE_MESSAGE_CONTENT";
6884
- readonly OTEL_SERVICE_NAME: "OTEL_SERVICE_NAME";
6885
- readonly OTEL_RESOURCE_ATTRIBUTES: "OTEL_RESOURCE_ATTRIBUTES";
6886
- readonly OTEL_EXPORTER_OTLP_ENDPOINT: "OTEL_EXPORTER_OTLP_ENDPOINT";
6887
- readonly OTEL_EXPORTER_OTLP_HEADERS: "OTEL_EXPORTER_OTLP_HEADERS";
6888
- readonly NODE_ENV: "NODE_ENV";
6889
- };
6890
- /**
6891
- * Metric names
6892
- * Includes both standard OpenTelemetry GenAI metrics and ADK-specific metrics
6893
- */
6894
- declare const METRICS: {
6895
- readonly GEN_AI_CLIENT_OPERATION_DURATION: "gen_ai.client.operation.duration";
6896
- readonly GEN_AI_CLIENT_TOKEN_USAGE: "gen_ai.client.token.usage";
6897
- readonly GEN_AI_SERVER_REQUEST_DURATION: "gen_ai.server.request.duration";
6898
- readonly GEN_AI_SERVER_TIME_TO_FIRST_TOKEN: "gen_ai.server.time_to_first_token";
6899
- readonly GEN_AI_SERVER_TIME_PER_OUTPUT_TOKEN: "gen_ai.server.time_per_output_token";
6900
- readonly AGENT_INVOCATIONS: "adk.agent.invocations";
6901
- readonly TOOL_EXECUTIONS: "adk.tool.executions";
6902
- readonly LLM_CALLS: "adk.llm.calls";
6903
- readonly ERRORS: "adk.errors";
6904
- readonly AGENT_DURATION: "adk.agent.duration";
6905
- readonly TOOL_DURATION: "adk.tool.duration";
6906
- readonly LLM_DURATION: "adk.llm.duration";
6907
- readonly LLM_TOKENS: "adk.llm.tokens";
6908
- readonly LLM_INPUT_TOKENS: "adk.llm.tokens.input";
6909
- readonly LLM_OUTPUT_TOKENS: "adk.llm.tokens.output";
6910
- };
6911
- /**
6912
- * Default configuration values
6913
- */
6914
- declare const DEFAULTS: {
6915
- readonly SAMPLING_RATIO: 1;
6916
- readonly METRIC_EXPORT_INTERVAL_MS: 60000;
6917
- readonly SHUTDOWN_TIMEOUT_MS: 5000;
6918
- readonly CAPTURE_MESSAGE_CONTENT: true;
6919
- readonly ENABLE_TRACING: true;
6920
- readonly ENABLE_METRICS: true;
6921
- readonly ENABLE_AUTO_INSTRUMENTATION: false;
6922
- };
6923
-
6924
6748
  /**
6925
6749
  * Telemetry Utilities
6926
6750
  * Helper functions for telemetry operations
@@ -7094,11 +6918,18 @@ declare class TelemetryService {
7094
6918
  * Shutdown telemetry system
7095
6919
  */
7096
6920
  shutdown(timeoutMs?: number): Promise<void>;
6921
+ /**
6922
+ * Get traces for a specific session (Debug/Visualization)
6923
+ */
6924
+ getTraces(): ReadableSpan[];
6925
+ getTracesForSession(sessionId: string): ReadableSpan[];
7097
6926
  }
7098
6927
  declare const telemetryService: TelemetryService;
7099
6928
  declare const tracer: Tracer;
7100
6929
  declare const initializeTelemetry: (config: TelemetryConfig) => Promise<void>;
7101
6930
  declare const shutdownTelemetry: (timeoutMs?: number) => Promise<void>;
6931
+
6932
+ declare const getTraces: () => ReadableSpan[];
7102
6933
  declare const traceAgentInvocation: (agent: {
7103
6934
  name: string;
7104
6935
  description?: string;
@@ -7111,4 +6942,4 @@ declare const recordLlmCall: (dimensions: LlmMetricDimensions) => void;
7111
6942
 
7112
6943
  declare const VERSION = "0.1.0";
7113
6944
 
7114
- export { ADK_ATTRS, ADK_SYSTEM_NAME, AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, type AgentSpanAttributes, 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, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DEFAULTS, DatabaseSessionService, ENV_VARS, EditTool, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$4 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$7 as Events, type EventsCompactionConfig, type EventsSummarizer, ExitLoopTool, type File, FileOperationsTool, FinalResponseMatchV2Evaluator, index$3 as Flows, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, METRICS, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$2 as Memory, type MessagePart, type MetricInfo, type MetricValueInfo, index$6 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OPERATIONS, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$1 as Plugins, PrebuiltMetrics, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, ReadTool, ReadonlyContext, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, RunConfig, Runner, type RunnerAskReturn, SEMCONV, SafetyEvaluatorV1, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SpanCounters, State, StreamingMode, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, type ToolSpanAttributes, type ToolUnion, index$8 as Tools, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiRagMemoryService, VertexAiSessionService, WebFetchTool, WebSearchTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, telemetryService, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };
6945
+ export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, type AgentSpanAttributes, 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, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EditTool, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$4 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$7 as Events, type EventsCompactionConfig, type EventsSummarizer, ExitLoopTool, type File, FileOperationsTool, FinalResponseMatchV2Evaluator, index$3 as Flows, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$2 as Memory, type MessagePart, type MetricInfo, type MetricValueInfo, index$6 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$1 as Plugins, PrebuiltMetrics, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, ReadTool, ReadonlyContext, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, RunConfig, Runner, type RunnerAskReturn, SafetyEvaluatorV1, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SpanCounters, State, StreamingMode, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, type ToolSpanAttributes, type ToolUnion, index$8 as Tools, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiRagMemoryService, VertexAiSessionService, WebFetchTool, WebSearchTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, getTraces, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, telemetryService, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,9 @@ import { StorageOptions } from '@google-cloud/storage';
8
8
  import { Kysely, Generated } from 'kysely';
9
9
  import { Client } from '@modelcontextprotocol/sdk/client/index.js';
10
10
  import { CreateMessageRequest, CreateMessageResult, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
11
+ import { ReadableSpan } from '@opentelemetry/sdk-trace-base';
12
+ export { ReadableSpan } from '@opentelemetry/sdk-trace-base';
13
+ export { ADK_ATTRS, ADK_SYSTEM_NAME, DEFAULTS, ENV_VARS, METRICS, OPERATIONS, SEMCONV } from './constants.js';
11
14
 
12
15
  /**
13
16
  * Authentication scheme types
@@ -6534,7 +6537,7 @@ interface TelemetryConfig {
6534
6537
  /** Application version (optional) */
6535
6538
  appVersion?: string;
6536
6539
  /** OTLP endpoint for traces (e.g., http://localhost:4318/v1/traces) */
6537
- otlpEndpoint: string;
6540
+ otlpEndpoint?: string;
6538
6541
  /** Custom headers for OTLP exporter */
6539
6542
  otlpHeaders?: Record<string, string>;
6540
6543
  /** Deployment environment (e.g., development, staging, production) */
@@ -6545,6 +6548,8 @@ interface TelemetryConfig {
6545
6548
  enableMetrics?: boolean;
6546
6549
  /** Enable auto-instrumentation for HTTP, databases, etc. (default: true) */
6547
6550
  enableAutoInstrumentation?: boolean;
6551
+ /** Enable debug mode (default: false). When enabled, in-memory exporter is active. */
6552
+ debug?: boolean;
6548
6553
  /** Capture message content in traces (default: true, set false for privacy) */
6549
6554
  captureMessageContent?: boolean;
6550
6555
  /** Sampling ratio for traces (0.0 to 1.0, default: 1.0 = 100%) */
@@ -6740,187 +6745,6 @@ interface TracePluginParams {
6740
6745
  invocationContext?: InvocationContext;
6741
6746
  }
6742
6747
 
6743
- /**
6744
- * Semantic Conventions and Constants
6745
- * OpenTelemetry semantic conventions for ADK telemetry
6746
- */
6747
- /**
6748
- * Standard OpenTelemetry GenAI semantic conventions
6749
- * Reference: https://opentelemetry.io/docs/specs/semconv/gen-ai/
6750
- * Version: v1.38.0 (development status)
6751
- */
6752
- declare const SEMCONV: {
6753
- readonly GEN_AI_PROVIDER_NAME: "gen_ai.provider.name";
6754
- readonly GEN_AI_OPERATION_NAME: "gen_ai.operation.name";
6755
- readonly GEN_AI_AGENT_ID: "gen_ai.agent.id";
6756
- readonly GEN_AI_AGENT_NAME: "gen_ai.agent.name";
6757
- readonly GEN_AI_AGENT_DESCRIPTION: "gen_ai.agent.description";
6758
- readonly GEN_AI_CONVERSATION_ID: "gen_ai.conversation.id";
6759
- readonly GEN_AI_TOOL_NAME: "gen_ai.tool.name";
6760
- readonly GEN_AI_TOOL_DESCRIPTION: "gen_ai.tool.description";
6761
- readonly GEN_AI_TOOL_TYPE: "gen_ai.tool.type";
6762
- readonly GEN_AI_TOOL_CALL_ID: "gen_ai.tool.call.id";
6763
- readonly GEN_AI_TOOL_CALL_ARGUMENTS: "gen_ai.tool.call.arguments";
6764
- readonly GEN_AI_TOOL_CALL_RESULT: "gen_ai.tool.call.result";
6765
- readonly GEN_AI_TOOL_DEFINITIONS: "gen_ai.tool.definitions";
6766
- readonly GEN_AI_REQUEST_MODEL: "gen_ai.request.model";
6767
- readonly GEN_AI_REQUEST_MAX_TOKENS: "gen_ai.request.max_tokens";
6768
- readonly GEN_AI_REQUEST_TEMPERATURE: "gen_ai.request.temperature";
6769
- readonly GEN_AI_REQUEST_TOP_P: "gen_ai.request.top_p";
6770
- readonly GEN_AI_REQUEST_TOP_K: "gen_ai.request.top_k";
6771
- readonly GEN_AI_REQUEST_FREQUENCY_PENALTY: "gen_ai.request.frequency_penalty";
6772
- readonly GEN_AI_REQUEST_PRESENCE_PENALTY: "gen_ai.request.presence_penalty";
6773
- readonly GEN_AI_REQUEST_STOP_SEQUENCES: "gen_ai.request.stop_sequences";
6774
- readonly GEN_AI_REQUEST_CHOICE_COUNT: "gen_ai.request.choice.count";
6775
- readonly GEN_AI_REQUEST_SEED: "gen_ai.request.seed";
6776
- readonly GEN_AI_RESPONSE_ID: "gen_ai.response.id";
6777
- readonly GEN_AI_RESPONSE_MODEL: "gen_ai.response.model";
6778
- readonly GEN_AI_RESPONSE_FINISH_REASONS: "gen_ai.response.finish_reasons";
6779
- readonly GEN_AI_OUTPUT_TYPE: "gen_ai.output.type";
6780
- readonly GEN_AI_USAGE_INPUT_TOKENS: "gen_ai.usage.input_tokens";
6781
- readonly GEN_AI_USAGE_OUTPUT_TOKENS: "gen_ai.usage.output_tokens";
6782
- readonly GEN_AI_SYSTEM_INSTRUCTIONS: "gen_ai.system_instructions";
6783
- readonly GEN_AI_INPUT_MESSAGES: "gen_ai.input.messages";
6784
- readonly GEN_AI_OUTPUT_MESSAGES: "gen_ai.output.messages";
6785
- readonly SERVER_ADDRESS: "server.address";
6786
- readonly SERVER_PORT: "server.port";
6787
- readonly ERROR_TYPE: "error.type";
6788
- readonly GEN_AI_DATA_SOURCE_ID: "gen_ai.data_source.id";
6789
- readonly GEN_AI_EMBEDDINGS_DIMENSION_COUNT: "gen_ai.embeddings.dimension.count";
6790
- readonly GEN_AI_REQUEST_ENCODING_FORMATS: "gen_ai.request.encoding_formats";
6791
- /**
6792
- * @deprecated Use GEN_AI_PROVIDER_NAME instead
6793
- */
6794
- readonly GEN_AI_SYSTEM: "gen_ai.system";
6795
- /**
6796
- * @deprecated Total tokens should be computed client-side from input + output
6797
- */
6798
- readonly GEN_AI_USAGE_TOTAL_TOKENS: "gen_ai.usage.total_tokens";
6799
- /**
6800
- * @deprecated Use GEN_AI_INPUT_MESSAGES or structured events instead
6801
- */
6802
- readonly GEN_AI_CONTENT_PROMPT: "gen_ai.content.prompt";
6803
- /**
6804
- * @deprecated Use GEN_AI_OUTPUT_MESSAGES or structured events instead
6805
- */
6806
- readonly GEN_AI_CONTENT_COMPLETION: "gen_ai.content.completion";
6807
- };
6808
- /**
6809
- * ADK-specific attribute namespace
6810
- * Custom attributes for IQAI ADK framework
6811
- */
6812
- declare const ADK_ATTRS: {
6813
- readonly SYSTEM_NAME: "adk.system.name";
6814
- readonly SYSTEM_VERSION: "adk.system.version";
6815
- readonly SESSION_ID: "adk.session.id";
6816
- readonly USER_ID: "adk.user.id";
6817
- readonly INVOCATION_ID: "adk.invocation.id";
6818
- readonly EVENT_ID: "adk.event.id";
6819
- readonly ENVIRONMENT: "adk.environment";
6820
- readonly AGENT_NAME: "adk.agent.name";
6821
- readonly AGENT_DESCRIPTION: "adk.agent.description";
6822
- readonly TRANSFER_SOURCE_AGENT: "adk.transfer.source_agent";
6823
- readonly TRANSFER_TARGET_AGENT: "adk.transfer.target_agent";
6824
- readonly TRANSFER_CHAIN: "adk.transfer.chain";
6825
- readonly TRANSFER_DEPTH: "adk.transfer.depth";
6826
- readonly TRANSFER_ROOT_AGENT: "adk.transfer.root_agent";
6827
- readonly TRANSFER_REASON: "adk.transfer.reason";
6828
- readonly TOOL_NAME: "adk.tool.name";
6829
- readonly TOOL_ARGS: "adk.tool.args";
6830
- readonly TOOL_RESPONSE: "adk.tool.response";
6831
- readonly TOOL_EXECUTION_ORDER: "adk.tool.execution_order";
6832
- readonly TOOL_PARALLEL_GROUP: "adk.tool.parallel_group";
6833
- readonly TOOL_RETRY_COUNT: "adk.tool.retry_count";
6834
- readonly TOOL_IS_CALLBACK_OVERRIDE: "adk.tool.is_callback_override";
6835
- readonly LLM_MODEL: "adk.llm.model";
6836
- readonly LLM_REQUEST: "adk.llm.request";
6837
- readonly LLM_RESPONSE: "adk.llm.response";
6838
- readonly LLM_STREAMING: "adk.llm.streaming";
6839
- readonly LLM_TIME_TO_FIRST_TOKEN: "adk.llm.time_to_first_token_ms";
6840
- readonly LLM_CHUNK_COUNT: "adk.llm.chunk_count";
6841
- readonly LLM_CACHED_TOKENS: "adk.llm.cached_tokens";
6842
- readonly LLM_CONTEXT_WINDOW_USED_PCT: "adk.llm.context_window_used_pct";
6843
- readonly CALLBACK_TYPE: "adk.callback.type";
6844
- readonly CALLBACK_NAME: "adk.callback.name";
6845
- readonly CALLBACK_INDEX: "adk.callback.index";
6846
- readonly ERROR_CATEGORY: "adk.error.category";
6847
- readonly ERROR_RECOVERABLE: "adk.error.recoverable";
6848
- readonly ERROR_RETRY_RECOMMENDED: "adk.error.retry_recommended";
6849
- readonly MEMORY_QUERY: "adk.memory.query";
6850
- readonly MEMORY_RESULTS_COUNT: "adk.memory.results_count";
6851
- readonly PLUGIN_NAME: "adk.plugin.name";
6852
- readonly PLUGIN_HOOK: "adk.plugin.hook";
6853
- };
6854
- /**
6855
- * Operation names for different trace operations
6856
- * Reference: https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/
6857
- */
6858
- declare const OPERATIONS: {
6859
- readonly CHAT: "chat";
6860
- readonly TEXT_COMPLETION: "text_completion";
6861
- readonly GENERATE_CONTENT: "generate_content";
6862
- readonly INVOKE_AGENT: "invoke_agent";
6863
- readonly CREATE_AGENT: "create_agent";
6864
- readonly EXECUTE_TOOL: "execute_tool";
6865
- readonly TRANSFER_AGENT: "transfer_agent";
6866
- readonly EXECUTE_CALLBACK: "execute_callback";
6867
- readonly SEARCH_MEMORY: "search_memory";
6868
- readonly INSERT_MEMORY: "insert_memory";
6869
- readonly EXECUTE_PLUGIN: "execute_plugin";
6870
- /**
6871
- * @deprecated Use CHAT, TEXT_COMPLETION, or GENERATE_CONTENT instead
6872
- */
6873
- readonly CALL_LLM: "call_llm";
6874
- };
6875
- /**
6876
- * System identifier for IQAI ADK
6877
- */
6878
- declare const ADK_SYSTEM_NAME = "iqai-adk";
6879
- /**
6880
- * Environment variable names
6881
- */
6882
- declare const ENV_VARS: {
6883
- readonly CAPTURE_MESSAGE_CONTENT: "ADK_CAPTURE_MESSAGE_CONTENT";
6884
- readonly OTEL_SERVICE_NAME: "OTEL_SERVICE_NAME";
6885
- readonly OTEL_RESOURCE_ATTRIBUTES: "OTEL_RESOURCE_ATTRIBUTES";
6886
- readonly OTEL_EXPORTER_OTLP_ENDPOINT: "OTEL_EXPORTER_OTLP_ENDPOINT";
6887
- readonly OTEL_EXPORTER_OTLP_HEADERS: "OTEL_EXPORTER_OTLP_HEADERS";
6888
- readonly NODE_ENV: "NODE_ENV";
6889
- };
6890
- /**
6891
- * Metric names
6892
- * Includes both standard OpenTelemetry GenAI metrics and ADK-specific metrics
6893
- */
6894
- declare const METRICS: {
6895
- readonly GEN_AI_CLIENT_OPERATION_DURATION: "gen_ai.client.operation.duration";
6896
- readonly GEN_AI_CLIENT_TOKEN_USAGE: "gen_ai.client.token.usage";
6897
- readonly GEN_AI_SERVER_REQUEST_DURATION: "gen_ai.server.request.duration";
6898
- readonly GEN_AI_SERVER_TIME_TO_FIRST_TOKEN: "gen_ai.server.time_to_first_token";
6899
- readonly GEN_AI_SERVER_TIME_PER_OUTPUT_TOKEN: "gen_ai.server.time_per_output_token";
6900
- readonly AGENT_INVOCATIONS: "adk.agent.invocations";
6901
- readonly TOOL_EXECUTIONS: "adk.tool.executions";
6902
- readonly LLM_CALLS: "adk.llm.calls";
6903
- readonly ERRORS: "adk.errors";
6904
- readonly AGENT_DURATION: "adk.agent.duration";
6905
- readonly TOOL_DURATION: "adk.tool.duration";
6906
- readonly LLM_DURATION: "adk.llm.duration";
6907
- readonly LLM_TOKENS: "adk.llm.tokens";
6908
- readonly LLM_INPUT_TOKENS: "adk.llm.tokens.input";
6909
- readonly LLM_OUTPUT_TOKENS: "adk.llm.tokens.output";
6910
- };
6911
- /**
6912
- * Default configuration values
6913
- */
6914
- declare const DEFAULTS: {
6915
- readonly SAMPLING_RATIO: 1;
6916
- readonly METRIC_EXPORT_INTERVAL_MS: 60000;
6917
- readonly SHUTDOWN_TIMEOUT_MS: 5000;
6918
- readonly CAPTURE_MESSAGE_CONTENT: true;
6919
- readonly ENABLE_TRACING: true;
6920
- readonly ENABLE_METRICS: true;
6921
- readonly ENABLE_AUTO_INSTRUMENTATION: false;
6922
- };
6923
-
6924
6748
  /**
6925
6749
  * Telemetry Utilities
6926
6750
  * Helper functions for telemetry operations
@@ -7094,11 +6918,18 @@ declare class TelemetryService {
7094
6918
  * Shutdown telemetry system
7095
6919
  */
7096
6920
  shutdown(timeoutMs?: number): Promise<void>;
6921
+ /**
6922
+ * Get traces for a specific session (Debug/Visualization)
6923
+ */
6924
+ getTraces(): ReadableSpan[];
6925
+ getTracesForSession(sessionId: string): ReadableSpan[];
7097
6926
  }
7098
6927
  declare const telemetryService: TelemetryService;
7099
6928
  declare const tracer: Tracer;
7100
6929
  declare const initializeTelemetry: (config: TelemetryConfig) => Promise<void>;
7101
6930
  declare const shutdownTelemetry: (timeoutMs?: number) => Promise<void>;
6931
+
6932
+ declare const getTraces: () => ReadableSpan[];
7102
6933
  declare const traceAgentInvocation: (agent: {
7103
6934
  name: string;
7104
6935
  description?: string;
@@ -7111,4 +6942,4 @@ declare const recordLlmCall: (dimensions: LlmMetricDimensions) => void;
7111
6942
 
7112
6943
  declare const VERSION = "0.1.0";
7113
6944
 
7114
- export { ADK_ATTRS, ADK_SYSTEM_NAME, AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, type AgentSpanAttributes, 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, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DEFAULTS, DatabaseSessionService, ENV_VARS, EditTool, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$4 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$7 as Events, type EventsCompactionConfig, type EventsSummarizer, ExitLoopTool, type File, FileOperationsTool, FinalResponseMatchV2Evaluator, index$3 as Flows, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, METRICS, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$2 as Memory, type MessagePart, type MetricInfo, type MetricValueInfo, index$6 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OPERATIONS, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$1 as Plugins, PrebuiltMetrics, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, ReadTool, ReadonlyContext, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, RunConfig, Runner, type RunnerAskReturn, SEMCONV, SafetyEvaluatorV1, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SpanCounters, State, StreamingMode, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, type ToolSpanAttributes, type ToolUnion, index$8 as Tools, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiRagMemoryService, VertexAiSessionService, WebFetchTool, WebSearchTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, telemetryService, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };
6945
+ export { AF_FUNCTION_CALL_ID_PREFIX, type AfterAgentCallback, type AfterModelCallback, type AfterToolCallback, LlmAgent as Agent, AgentBuilder, type AgentBuilderConfig, type AgentBuilderWithSchema, AgentEvaluator, type AgentMetricDimensions, type AgentSpanAttributes, 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, BasePlugin, BaseSessionService, BaseTool, BashTool, BasicAuthCredential, BearerTokenCredential, type BeforeAgentCallback, type BeforeModelCallback, type BeforeToolCallback, type BuildFunctionDeclarationOptions, type BuiltAgent, BuiltInCodeExecutor, BuiltInPlanner, CallbackContext, type CodeExecutionInput, type CodeExecutionResult, CodeExecutionUtils, CodeExecutorContext, ContextCacheConfig, type ContextCacheConfigProps, type ContextCacheManager, type CreateToolConfig, type CreateToolConfigWithSchema, type CreateToolConfigWithoutSchema, DatabaseSessionService, EditTool, EnhancedAuthConfig, type EnhancedLlmSpanAttributes, type EnhancedRunner, type EnhancedToolSpanAttributes, type ErrorSpanAttributes, type EvalCase, type EvalCaseResult, type EvalMetric, type EvalMetricResult, type EvalMetricResultPerInvocation, EvalResult, type EvalSet, type EvalSetResult, EvalStatus, type EvaluateConfig, index$4 as Evaluation, type EvaluationResult, Evaluator, Event, EventActions, type EventCompaction, index$7 as Events, type EventsCompactionConfig, type EventsSummarizer, ExitLoopTool, type File, FileOperationsTool, FinalResponseMatchV2Evaluator, index$3 as Flows, type FullMessage, FunctionTool, GcsArtifactService, GeminiContextCacheManager, type GetSessionConfig, GetUserChoiceTool, GlobTool, GoogleLlm, GoogleSearchTool, GrepTool, HttpRequestTool, HttpScheme, InMemoryArtifactService, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, type InstructionProvider, type IntermediateData, type Interval, type Invocation, InvocationContext, type JudgeModelOptions, LLMRegistry, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, LangfusePlugin, type LangfusePluginOptions, type ListSessionsResponse, LlmAgent, type LlmAgentConfig, LlmCallsLimitExceededError, LlmEventSummarizer, type LlmMetricDimensions, type LlmModel, type LlmModelConfig, LlmRequest, LlmResponse, type LlmSpanAttributes, LoadArtifactsTool, LoadMemoryTool, LocalEvalService, LoopAgent, type LoopAgentConfig, McpAbi, McpAtp, McpBamm, McpCoinGecko, McpCoinGeckoPro, type McpConfig, McpDiscord, McpError, McpErrorType, McpFilesystem, McpFraxlend, McpGeneric, McpIqWiki, McpMemory, McpNearAgent, McpNearIntents, McpOdos, McpPolymarket, McpSamplingHandler, type McpSamplingRequest, type McpSamplingResponse, type McpServerConfig, McpTelegram, McpToolset, type McpTransportType, McpUpbit, index$2 as Memory, type MessagePart, type MetricInfo, type MetricValueInfo, index$6 as Models, type MultiAgentResponse, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAiLlm, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, type ParsedArtifactUri, type PerInvocationResult, type PerToolFailuresCounter, PlanReActPlanner, type PluginCallbackName, PluginManager, index$1 as Plugins, PrebuiltMetrics, REFLECT_AND_RETRY_RESPONSE_TYPE, REQUEST_EUC_FUNCTION_CALL_NAME, ReadTool, ReadonlyContext, ReflectAndRetryToolPlugin, type ReflectAndRetryToolPluginOptions, RougeEvaluator, RunConfig, Runner, type RunnerAskReturn, SafetyEvaluatorV1, type SamplingHandler, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionInput, type SessionOptions, index as Sessions, type SingleAfterModelCallback, type SingleAfterToolCallback, type SingleAgentCallback, type SingleBeforeModelCallback, type SingleBeforeToolCallback, SingleFlow, type SpanCounters, State, StreamingMode, type TelemetryConfig, TelemetryService, type TelemetryStats, type ThinkingConfig, type ToolConfig, ToolContext, type ToolFailureResponse, type ToolMetricDimensions, type ToolSpanAttributes, type ToolUnion, index$8 as Tools, type TraceAgentParams, type TraceAgentTransferParams, type TraceCallbackParams, type TraceLlmParams, type TraceMemoryParams, type TracePluginParams, type TraceSessionParams, type TraceToolParams, TrackingScope, TrajectoryEvaluator, type TransferContext, TransferToAgentTool, UserInteractionTool, VERSION, VertexAiRagMemoryService, VertexAiSessionService, WebFetchTool, WebSearchTool, WriteTool, _findFunctionCallEventIfLastEventIsFunctionResponse, adkToMcpToolType, requestProcessor$6 as agentTransferRequestProcessor, requestProcessor$5 as basicRequestProcessor, buildFunctionDeclaration, buildLlmRequestForTrace, buildLlmResponseForTrace, requestProcessor$4 as codeExecutionRequestProcessor, responseProcessor$1 as codeExecutionResponseProcessor, requestProcessor$3 as contentRequestProcessor, contextCacheConfigSchema, convertMcpToolToBaseTool, createAuthToolArguments, createBranchContextForSubAgent, createDatabaseSessionService, createFunctionTool, createMysqlSessionService, createPostgresSessionService, createSamplingHandler, createSqliteSessionService, createTool, extractTextFromContent, formatSpanAttributes, generateAuthEvent, generateClientFunctionCallId, getArtifactUri, getEnvironment, getLongRunningFunctionCalls, getMcpTools, getTraces, handleFunctionCallsAsync, handleFunctionCallsLive, requestProcessor$2 as identityRequestProcessor, initializeTelemetry, injectSessionState, requestProcessor$1 as instructionsRequestProcessor, isArtifactRef, isEnhancedAuthConfig, jsonSchemaToDeclaration, mcpSchemaToParameters, mergeAgentRun, mergeParallelFunctionResponseEvents, newInvocationContextId, requestProcessor as nlPlanningRequestProcessor, responseProcessor as nlPlanningResponseProcessor, normalizeJsonSchema, parseArtifactUri, pluginCallbackNameSchema, populateClientFunctionCallId, recordAgentInvocation, recordLlmCall, recordToolExecution, registerProviders, removeClientFunctionCallId, requestProcessor$7 as requestProcessor, runCompactionForSlidingWindow, safeJsonStringify, shouldCaptureContent, shutdownTelemetry, telemetryService, traceAgentInvocation, traceLlmCall, traceToolCall, tracer };