import { Agent } from "./agent/Agents"; import { IConfiguration } from "./config/types/config.types"; import { ToolNode } from "@langchain/langgraph/prebuilt"; import { HumanMessage } from "@langchain/core/messages"; import { ChatOpenAI, ChatOpenAICallOptions } from "@langchain/openai"; import { MemorySaver } from "@langchain/langgraph"; import { ISocials } from "./types/core.interface"; import { DatabaseService } from "./services/database.service"; import { RedisSessionManager } from "./utils/redis-session.manager"; /** .................. ............. ................. ,....... . .......... . .,,/ # # %, . ........................ / %#####((((((((@ , ,................. *( (#(#(#(((((((((((((((((#@ , ............ / *(#(((((((((((((((((((((((((((((((#@ , *........./ (#(((((((((((((((((((((((((((((((#####(((%@ . ........,/(#((((((((((((((((((((((((((#(((((########((((@ . ......../ ##((((((((((((((((((((((((# @ % (##@# ........./##((((((((((((#, #((# @ ,.##(. (@ ......... ##(((((((((# #(##. ,**#%%%@&&&%&%%%%&%( %%/ ........ #%#((((((((*(#. @@ &@ (%&&%#%##(*,.../%%######/ #% ........../##(((((((## # @ /%&%(%. ,. **. (##%&&#* &. (@ ,......... #(((((((( . , *#%%%#( /, @@@@@. /, //@%%%%%/( ((((%@ ...........##(((((( @ #&@%##* .., .. .#&%&&@## #@% (((% #% ..........(#(((((( .&&##%##. .,/(/%###%&@(#/ @ @ ((((# ## ...........((((((( .&&@%&%@%##%%%&%&&%&@%##### ( ,#(((((((((#@ % .........../((((#. /%%%&%%%%%%%(#.,*@ . ###((((###(((((((((((((((@/@ ...........(((((( @ & #((##(((((#% #((((((((((((((#@ ... . .##(((((( @ %(((((((# ,#( #(((((((((((((((((((@, .. &% ,##((((((((((((((((((((((((((((((((((((((((((((((((((((((@@ , # .%###(((((((((((((((((((((((((((((((###% . %#((((((((((((@@ ###, ###(((((((((((((((((((((((((((((# @ % #(((((((((((@, *## ###(((((((((((((((((((((((((((#% (/ ##((((((((((#@ #### ##(((((((((((((((((((((((((#, #####%/ %(((((((((((@ #(((((((((((((((((((((((((((((### %###((((((((((((&. #(((((((((((((((((((((((((((((((((((((((((((((((((@ (((((((((((((((((((((((((((((((((((((((((( #(((@ #((((((((((((((((((((((((((((((((((((# ((((( ((((((((((((((((((((((#####(((#% (((((((@ /(*(* #((((((((((((((((((((#(#####(#((((((((((# ,(///* (((,/// /(#((((((((((((((((((((((((((((((((((# .///( //////* ###(((((((((((((((((((((((((( ///(( ///////, %#######((((## /(///( * @name OobeCore * @description Core module for the OOBE protocol * @example const core = new OobeCore(config) * @author oobe-protocol */ export declare class OobeCore { private agent; private logger; private memory; private databaseService?; private config; constructor(config: IConfiguration); start(): Promise; private CreatePersona; recordAction(actionType: string, actionData: any, result?: any): Promise; getPersonaStatistics(): Promise; CreateOobeAgent(name: string, age: number, socials: ISocials | null, genAi: ChatOpenAI, tools: any | ToolNode, memory: MemorySaver, messageModifier: any): import("@langchain/langgraph").CompiledStateGraph; }>, import("@langchain/langgraph").UpdateType<{ messages: import("@langchain/langgraph").BinaryOperatorAggregate; }>, any, { messages: import("@langchain/langgraph").BinaryOperatorAggregate; }, { messages: import("@langchain/langgraph").BinaryOperatorAggregate; structuredResponse: { (): import("@langchain/langgraph").LastValue>; (annotation: import("@langchain/langgraph").SingleReducer, Record>): import("@langchain/langgraph").BinaryOperatorAggregate, Record>; Root: (sd: S) => import("@langchain/langgraph").AnnotationRoot; }; } & { messages: import("@langchain/langgraph").BinaryOperatorAggregate; }, import("@langchain/langgraph").StateDefinition>; AccessMemory(): RedisSessionManager | MemorySaver; /** * Get the current configuration */ getConfig(): IConfiguration; /** * Get the configured Prisma database URL */ getPrismaDbUrl(): string | undefined; /** * Get the MemorySaver configuration */ getMemorySaverConfig(): { enabled?: boolean; storageType?: "memory" | "file" | "redis"; filePath?: string; redisUrl?: string; } | undefined; /** * Get the session manager (if using Redis) */ getSessionManager(): RedisSessionManager | null; /** * Create a new session (Redis only, agent-scoped) */ createSession(agentId: string, userId?: string, metadata?: Record): Promise; /** * List all active sessions (Redis only, agent-scoped) */ listSessions(agentId: string, userId?: string): Promise; /** * Delete a session (Redis only, agent-scoped) */ deleteSession(agentId: string, sessionId: string): Promise; /** * Get session statistics (Redis only, agent-scoped) */ getSessionStats(agentId: string): Promise; /** * Clean up expired sessions (Redis only, agent-scoped) */ cleanupExpiredSessions(agentId: string): Promise; AgentHumanMessage(userInput: string): HumanMessage; stop(): Promise; getAgent(): Agent; getDatabaseService(): DatabaseService | undefined; getConfiguration(): IConfiguration; } //# sourceMappingURL=core.d.ts.map