@iqai/adk 0.0.4 → 0.0.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/CHANGELOG.md CHANGED
@@ -1,19 +1,7 @@
1
1
  # @iqai/adk
2
2
 
3
- ## 0.0.4
3
+ ## 0.0.5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 2fb5331: export mcp tool types
8
-
9
- ## 0.0.3
10
-
11
- ### Patch Changes
12
-
13
- - 7481f59: added mcp tool export
14
-
15
- ## 0.0.2
16
-
17
- ### Patch Changes
18
-
19
- - 961fdd6: Updates package json to bundle correct files
7
+ - 5448661: Updates pglite session to take pglite instance as input instead of drizzle
package/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 IQAI.com
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { AxiosInstance } from 'axios';
4
4
  import OpenAI from 'openai';
5
5
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
6
6
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
7
- import { PgliteDatabase } from 'drizzle-orm/pglite';
7
+ import { PGlite } from '@electric-sql/pglite';
8
8
 
9
9
  /**
10
10
  * Function call result from LLM
@@ -1781,10 +1781,10 @@ declare class ToolContext implements IToolContext {
1781
1781
  get sessionId(): string;
1782
1782
  get messages(): Message[];
1783
1783
  get config(): RunConfig;
1784
- get userId(): string | undefined;
1785
- get appName(): string | undefined;
1786
- get memoryService(): BaseMemoryService | undefined;
1787
- get sessionService(): SessionService | undefined;
1784
+ get userId(): string;
1785
+ get appName(): string;
1786
+ get memoryService(): BaseMemoryService;
1787
+ get sessionService(): SessionService;
1788
1788
  get metadata(): Record<string, any>;
1789
1789
  get variables(): Map<string, any>;
1790
1790
  setVariable(name: string, value: any): void;
@@ -3215,27 +3215,27 @@ declare const sessionsSchema$1: drizzle_orm_pg_core.PgTableWithColumns<{
3215
3215
  };
3216
3216
  dialect: "pg";
3217
3217
  }>;
3218
- type SessionsTable$1 = typeof sessionsSchema$1;
3218
+ type SessionsTable = typeof sessionsSchema$1;
3219
3219
  /**
3220
3220
  * Configuration for DatabaseSessionService with Drizzle
3221
3221
  */
3222
- interface DatabaseSessionServiceConfig$1 {
3222
+ interface DatabaseSessionServiceConfig {
3223
3223
  /**
3224
3224
  * An initialized Drizzle ORM database client instance.
3225
3225
  * Example: drizzle(new Pool({ connectionString: '...' }), { schema: { sessions: sessionsSchema } })
3226
3226
  */
3227
3227
  db: NodePgDatabase<{
3228
- sessions: SessionsTable$1;
3228
+ sessions: SessionsTable;
3229
3229
  }>;
3230
3230
  /**
3231
3231
  * Optional: Pass the sessions schema table directly if not attached to db client's schema property
3232
3232
  */
3233
- sessionsTable?: SessionsTable$1;
3233
+ sessionsTable?: SessionsTable;
3234
3234
  }
3235
3235
  declare class PostgresSessionService implements SessionService {
3236
3236
  private db;
3237
3237
  private sessionsTable;
3238
- constructor(config: DatabaseSessionServiceConfig$1);
3238
+ constructor(config: DatabaseSessionServiceConfig);
3239
3239
  private generateSessionId;
3240
3240
  createSession(userId: string, metadata?: Record<string, any>): Promise<Session>;
3241
3241
  getSession(sessionId: string): Promise<Session | undefined>;
@@ -3387,22 +3387,15 @@ declare const sessionsSchema: drizzle_orm_pg_core.PgTableWithColumns<{
3387
3387
  };
3388
3388
  dialect: "pg";
3389
3389
  }>;
3390
- type SessionsTable = typeof sessionsSchema;
3391
3390
  /**
3392
- * Configuration for DatabaseSessionService with Drizzle and PGlite
3391
+ * Configuration for PgLiteSessionService
3393
3392
  */
3394
- interface DatabaseSessionServiceConfig {
3395
- /**
3396
- * An initialized Drizzle ORM database client instance with PGlite.
3397
- * Example: drizzle(new PGlite(), { schema: { sessions: sessionsSchema } })
3398
- */
3399
- db: PgliteDatabase<{
3400
- sessions: SessionsTable;
3401
- }>;
3393
+ interface PgLiteSessionServiceConfig {
3402
3394
  /**
3403
- * Optional: Pass the sessions schema table directly if not attached to db client's schema property
3395
+ * An initialized PGlite instance.
3396
+ * The service will handle all Drizzle ORM setup internally.
3404
3397
  */
3405
- sessionsTable?: SessionsTable;
3398
+ pglite: PGlite;
3406
3399
  /**
3407
3400
  * Optional: Skip automatic table creation if you handle migrations externally
3408
3401
  */
@@ -3412,7 +3405,7 @@ declare class PgLiteSessionService implements SessionService {
3412
3405
  private db;
3413
3406
  private sessionsTable;
3414
3407
  private initialized;
3415
- constructor(config: DatabaseSessionServiceConfig);
3408
+ constructor(config: PgLiteSessionServiceConfig);
3416
3409
  /**
3417
3410
  * Initialize the database by creating required tables if they don't exist
3418
3411
  */
@@ -3427,12 +3420,6 @@ declare class PgLiteSessionService implements SessionService {
3427
3420
  updateSession(session: Session): Promise<void>;
3428
3421
  listSessions(userId: string, options?: ListSessionOptions): Promise<Session[]>;
3429
3422
  deleteSession(sessionId: string): Promise<void>;
3430
- /**
3431
- * Appends an event to a session object
3432
- * @param session The session to append the event to
3433
- * @param event The event to append
3434
- * @returns The appended event
3435
- */
3436
3423
  appendEvent(session: Session, event: Event): Promise<Event>;
3437
3424
  }
3438
3425
 
@@ -3475,9 +3462,10 @@ type index_SessionState = SessionState;
3475
3462
  declare const index_SessionState: typeof SessionState;
3476
3463
  declare const index_cloneSession: typeof cloneSession;
3477
3464
  declare const index_generateSessionId: typeof generateSessionId;
3465
+ declare const index_sessionsSchema: typeof sessionsSchema;
3478
3466
  declare const index_validateSession: typeof validateSession;
3479
3467
  declare namespace index {
3480
- export { index_InMemorySessionService as InMemorySessionService, type index_ListSessionOptions as ListSessionOptions, index_PgLiteSessionService as PgLiteSessionService, index_PostgresSessionService as PostgresSessionService, type index_Session as Session, type index_SessionService as SessionService, index_SessionState as SessionState, index_cloneSession as cloneSession, index_generateSessionId as generateSessionId, index_validateSession as validateSession };
3468
+ export { index_InMemorySessionService as InMemorySessionService, type index_ListSessionOptions as ListSessionOptions, index_PgLiteSessionService as PgLiteSessionService, index_PostgresSessionService as PostgresSessionService, type index_Session as Session, type index_SessionService as SessionService, index_SessionState as SessionState, index_cloneSession as cloneSession, index_generateSessionId as generateSessionId, index_sessionsSchema as sessionsSchema, index_validateSession as validateSession };
3481
3469
  }
3482
3470
 
3483
3471
  /**
@@ -3543,4 +3531,4 @@ declare class InMemoryRunner extends Runner {
3543
3531
 
3544
3532
  declare const VERSION = "0.1.0";
3545
3533
 
3546
- export { Agent, type AgentConfig, index$3 as Agents, AnthropicLLM, type AnthropicLLMConfig, AnthropicLLMConnection, ApiKeyCredential, ApiKeyScheme, type AudioTranscriptionConfig, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, BaseAgent, BaseLLM, BaseLLMConnection, type BaseMemoryService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BuildFunctionDeclarationOptions, ExitLoopTool, FileOperationsTool, type FunctionCall, type FunctionDeclaration, FunctionTool, GetUserChoiceTool, GoogleLLM, type GoogleLLMConfig, GoogleSearch, HttpRequestTool, HttpScheme, type IToolContext, type ImageContent, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InvocationContext, type JSONSchema, LLMRegistry, LLMRequest, type LLMRequestConfig, LLMResponse, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionOptions, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpToolset, type McpTransportType, index$1 as Memory, type MemoryResult, type Message, type MessageContent, type MessageRole, index$4 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAILLM, type OpenAILLMConfig, OpenAILLMConnection, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PersistentMemoryService, PgLiteSessionService, PostgresSessionService, RunConfig, Runner, type SearchMemoryOptions, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionService, SessionState, index as Sessions, type SpeechConfig, StreamingMode, type TextContent, type ToolCall, type ToolConfig, ToolContext, index$2 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, adkToMcpToolType, buildFunctionDeclaration, cloneSession, createFunctionTool, generateSessionId, getMcpTools, jsonSchemaToDeclaration, mcpSchemaToParameters, normalizeJsonSchema, registerProviders, validateSession };
3534
+ export { Agent, type AgentConfig, index$3 as Agents, AnthropicLLM, type AnthropicLLMConfig, AnthropicLLMConnection, ApiKeyCredential, ApiKeyScheme, type AudioTranscriptionConfig, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, BaseAgent, BaseLLM, BaseLLMConnection, type BaseMemoryService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BuildFunctionDeclarationOptions, ExitLoopTool, FileOperationsTool, type FunctionCall, type FunctionDeclaration, FunctionTool, GetUserChoiceTool, GoogleLLM, type GoogleLLMConfig, GoogleSearch, HttpRequestTool, HttpScheme, type IToolContext, type ImageContent, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InvocationContext, type JSONSchema, LLMRegistry, LLMRequest, type LLMRequestConfig, LLMResponse, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionOptions, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpToolset, type McpTransportType, index$1 as Memory, type MemoryResult, type Message, type MessageContent, type MessageRole, index$4 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAILLM, type OpenAILLMConfig, OpenAILLMConnection, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PersistentMemoryService, PgLiteSessionService, PostgresSessionService, RunConfig, Runner, type SearchMemoryOptions, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionService, SessionState, index as Sessions, type SpeechConfig, StreamingMode, type TextContent, type ToolCall, type ToolConfig, ToolContext, index$2 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, adkToMcpToolType, buildFunctionDeclaration, cloneSession, createFunctionTool, generateSessionId, getMcpTools, jsonSchemaToDeclaration, mcpSchemaToParameters, normalizeJsonSchema, registerProviders, sessionsSchema, validateSession };
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { AxiosInstance } from 'axios';
4
4
  import OpenAI from 'openai';
5
5
  import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
6
6
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
7
- import { PgliteDatabase } from 'drizzle-orm/pglite';
7
+ import { PGlite } from '@electric-sql/pglite';
8
8
 
9
9
  /**
10
10
  * Function call result from LLM
@@ -1781,10 +1781,10 @@ declare class ToolContext implements IToolContext {
1781
1781
  get sessionId(): string;
1782
1782
  get messages(): Message[];
1783
1783
  get config(): RunConfig;
1784
- get userId(): string | undefined;
1785
- get appName(): string | undefined;
1786
- get memoryService(): BaseMemoryService | undefined;
1787
- get sessionService(): SessionService | undefined;
1784
+ get userId(): string;
1785
+ get appName(): string;
1786
+ get memoryService(): BaseMemoryService;
1787
+ get sessionService(): SessionService;
1788
1788
  get metadata(): Record<string, any>;
1789
1789
  get variables(): Map<string, any>;
1790
1790
  setVariable(name: string, value: any): void;
@@ -3215,27 +3215,27 @@ declare const sessionsSchema$1: drizzle_orm_pg_core.PgTableWithColumns<{
3215
3215
  };
3216
3216
  dialect: "pg";
3217
3217
  }>;
3218
- type SessionsTable$1 = typeof sessionsSchema$1;
3218
+ type SessionsTable = typeof sessionsSchema$1;
3219
3219
  /**
3220
3220
  * Configuration for DatabaseSessionService with Drizzle
3221
3221
  */
3222
- interface DatabaseSessionServiceConfig$1 {
3222
+ interface DatabaseSessionServiceConfig {
3223
3223
  /**
3224
3224
  * An initialized Drizzle ORM database client instance.
3225
3225
  * Example: drizzle(new Pool({ connectionString: '...' }), { schema: { sessions: sessionsSchema } })
3226
3226
  */
3227
3227
  db: NodePgDatabase<{
3228
- sessions: SessionsTable$1;
3228
+ sessions: SessionsTable;
3229
3229
  }>;
3230
3230
  /**
3231
3231
  * Optional: Pass the sessions schema table directly if not attached to db client's schema property
3232
3232
  */
3233
- sessionsTable?: SessionsTable$1;
3233
+ sessionsTable?: SessionsTable;
3234
3234
  }
3235
3235
  declare class PostgresSessionService implements SessionService {
3236
3236
  private db;
3237
3237
  private sessionsTable;
3238
- constructor(config: DatabaseSessionServiceConfig$1);
3238
+ constructor(config: DatabaseSessionServiceConfig);
3239
3239
  private generateSessionId;
3240
3240
  createSession(userId: string, metadata?: Record<string, any>): Promise<Session>;
3241
3241
  getSession(sessionId: string): Promise<Session | undefined>;
@@ -3387,22 +3387,15 @@ declare const sessionsSchema: drizzle_orm_pg_core.PgTableWithColumns<{
3387
3387
  };
3388
3388
  dialect: "pg";
3389
3389
  }>;
3390
- type SessionsTable = typeof sessionsSchema;
3391
3390
  /**
3392
- * Configuration for DatabaseSessionService with Drizzle and PGlite
3391
+ * Configuration for PgLiteSessionService
3393
3392
  */
3394
- interface DatabaseSessionServiceConfig {
3395
- /**
3396
- * An initialized Drizzle ORM database client instance with PGlite.
3397
- * Example: drizzle(new PGlite(), { schema: { sessions: sessionsSchema } })
3398
- */
3399
- db: PgliteDatabase<{
3400
- sessions: SessionsTable;
3401
- }>;
3393
+ interface PgLiteSessionServiceConfig {
3402
3394
  /**
3403
- * Optional: Pass the sessions schema table directly if not attached to db client's schema property
3395
+ * An initialized PGlite instance.
3396
+ * The service will handle all Drizzle ORM setup internally.
3404
3397
  */
3405
- sessionsTable?: SessionsTable;
3398
+ pglite: PGlite;
3406
3399
  /**
3407
3400
  * Optional: Skip automatic table creation if you handle migrations externally
3408
3401
  */
@@ -3412,7 +3405,7 @@ declare class PgLiteSessionService implements SessionService {
3412
3405
  private db;
3413
3406
  private sessionsTable;
3414
3407
  private initialized;
3415
- constructor(config: DatabaseSessionServiceConfig);
3408
+ constructor(config: PgLiteSessionServiceConfig);
3416
3409
  /**
3417
3410
  * Initialize the database by creating required tables if they don't exist
3418
3411
  */
@@ -3427,12 +3420,6 @@ declare class PgLiteSessionService implements SessionService {
3427
3420
  updateSession(session: Session): Promise<void>;
3428
3421
  listSessions(userId: string, options?: ListSessionOptions): Promise<Session[]>;
3429
3422
  deleteSession(sessionId: string): Promise<void>;
3430
- /**
3431
- * Appends an event to a session object
3432
- * @param session The session to append the event to
3433
- * @param event The event to append
3434
- * @returns The appended event
3435
- */
3436
3423
  appendEvent(session: Session, event: Event): Promise<Event>;
3437
3424
  }
3438
3425
 
@@ -3475,9 +3462,10 @@ type index_SessionState = SessionState;
3475
3462
  declare const index_SessionState: typeof SessionState;
3476
3463
  declare const index_cloneSession: typeof cloneSession;
3477
3464
  declare const index_generateSessionId: typeof generateSessionId;
3465
+ declare const index_sessionsSchema: typeof sessionsSchema;
3478
3466
  declare const index_validateSession: typeof validateSession;
3479
3467
  declare namespace index {
3480
- export { index_InMemorySessionService as InMemorySessionService, type index_ListSessionOptions as ListSessionOptions, index_PgLiteSessionService as PgLiteSessionService, index_PostgresSessionService as PostgresSessionService, type index_Session as Session, type index_SessionService as SessionService, index_SessionState as SessionState, index_cloneSession as cloneSession, index_generateSessionId as generateSessionId, index_validateSession as validateSession };
3468
+ export { index_InMemorySessionService as InMemorySessionService, type index_ListSessionOptions as ListSessionOptions, index_PgLiteSessionService as PgLiteSessionService, index_PostgresSessionService as PostgresSessionService, type index_Session as Session, type index_SessionService as SessionService, index_SessionState as SessionState, index_cloneSession as cloneSession, index_generateSessionId as generateSessionId, index_sessionsSchema as sessionsSchema, index_validateSession as validateSession };
3481
3469
  }
3482
3470
 
3483
3471
  /**
@@ -3543,4 +3531,4 @@ declare class InMemoryRunner extends Runner {
3543
3531
 
3544
3532
  declare const VERSION = "0.1.0";
3545
3533
 
3546
- export { Agent, type AgentConfig, index$3 as Agents, AnthropicLLM, type AnthropicLLMConfig, AnthropicLLMConnection, ApiKeyCredential, ApiKeyScheme, type AudioTranscriptionConfig, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, BaseAgent, BaseLLM, BaseLLMConnection, type BaseMemoryService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BuildFunctionDeclarationOptions, ExitLoopTool, FileOperationsTool, type FunctionCall, type FunctionDeclaration, FunctionTool, GetUserChoiceTool, GoogleLLM, type GoogleLLMConfig, GoogleSearch, HttpRequestTool, HttpScheme, type IToolContext, type ImageContent, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InvocationContext, type JSONSchema, LLMRegistry, LLMRequest, type LLMRequestConfig, LLMResponse, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionOptions, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpToolset, type McpTransportType, index$1 as Memory, type MemoryResult, type Message, type MessageContent, type MessageRole, index$4 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAILLM, type OpenAILLMConfig, OpenAILLMConnection, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PersistentMemoryService, PgLiteSessionService, PostgresSessionService, RunConfig, Runner, type SearchMemoryOptions, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionService, SessionState, index as Sessions, type SpeechConfig, StreamingMode, type TextContent, type ToolCall, type ToolConfig, ToolContext, index$2 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, adkToMcpToolType, buildFunctionDeclaration, cloneSession, createFunctionTool, generateSessionId, getMcpTools, jsonSchemaToDeclaration, mcpSchemaToParameters, normalizeJsonSchema, registerProviders, validateSession };
3534
+ export { Agent, type AgentConfig, index$3 as Agents, AnthropicLLM, type AnthropicLLMConfig, AnthropicLLMConnection, ApiKeyCredential, ApiKeyScheme, type AudioTranscriptionConfig, AuthConfig, AuthCredential, AuthCredentialType, AuthHandler, AuthScheme, AuthSchemeType, BaseAgent, BaseLLM, BaseLLMConnection, type BaseMemoryService, BaseTool, BasicAuthCredential, BearerTokenCredential, type BuildFunctionDeclarationOptions, ExitLoopTool, FileOperationsTool, type FunctionCall, type FunctionDeclaration, FunctionTool, GetUserChoiceTool, GoogleLLM, type GoogleLLMConfig, GoogleSearch, HttpRequestTool, HttpScheme, type IToolContext, type ImageContent, InMemoryMemoryService, InMemoryRunner, InMemorySessionService, InvocationContext, type JSONSchema, LLMRegistry, LLMRequest, type LLMRequestConfig, LLMResponse, LangGraphAgent, type LangGraphAgentConfig, type LangGraphNode, type ListSessionOptions, LoadMemoryTool, LoopAgent, type LoopAgentConfig, type McpConfig, McpError, McpErrorType, McpToolset, type McpTransportType, index$1 as Memory, type MemoryResult, type Message, type MessageContent, type MessageRole, index$4 as Models, OAuth2Credential, OAuth2Scheme, type OAuthFlow, type OAuthFlows, OpenAILLM, type OpenAILLMConfig, OpenAILLMConnection, OpenIdConnectScheme, ParallelAgent, type ParallelAgentConfig, PersistentMemoryService, PgLiteSessionService, PostgresSessionService, RunConfig, Runner, type SearchMemoryOptions, type SearchMemoryResponse, SequentialAgent, type SequentialAgentConfig, type Session, type SessionService, SessionState, index as Sessions, type SpeechConfig, StreamingMode, type TextContent, type ToolCall, type ToolConfig, ToolContext, index$2 as Tools, TransferToAgentTool, UserInteractionTool, VERSION, adkToMcpToolType, buildFunctionDeclaration, cloneSession, createFunctionTool, generateSessionId, getMcpTools, jsonSchemaToDeclaration, mcpSchemaToParameters, normalizeJsonSchema, registerProviders, sessionsSchema, validateSession };