local-agent
Version:
A CLI agentic system for orchestrating tools and memory with per-folder scoping
40 lines • 1.71 kB
TypeScript
/**
* Creates a new session memory file and writes the session header.
* The file is named with the current timestamp and stored in the memory directory.
*
* @param {Date} now - The current date and time.
* @param {string} toolRow - A summary row listing all tools and their status.
* @param {string} toolStatusMd - Markdown-formatted details of tool load status.
* @param {string} agentName - The display name of the agent.
* @returns {string} The path to the created session file.
*/
export declare function createSessionFile(now: Date, toolRow: string, toolStatusMd: string, agentName: string): string;
/**
* Appends a user prompt to the session memory file.
*
* @param {string} sessionFile - Path to the session file.
* @param {string} prompt - The user's input prompt.
*/
export declare function logUserPrompt(sessionFile: string, prompt: string): void;
/**
* Appends a tool usage entry to the session memory file.
*
* @param {string} sessionFile - Path to the session file.
* @param {string} toolName - The name of the tool used.
*/
export declare function logToolUsed(sessionFile: string, toolName: string): void;
/**
* Appends an agent response to the session memory file.
*
* @param {string} sessionFile - Path to the session file.
* @param {string} response - The agent's response text.
*/
export declare function logAgentResponse(sessionFile: string, response: string): void;
/**
* Appends an error message to the session memory file.
*
* @param {string} sessionFile - Path to the session file.
* @param {string} errMsg - The error message to log.
*/
export declare function logAgentError(sessionFile: string, errMsg: string): void;
//# sourceMappingURL=memory.d.ts.map