n8n
Version:
n8n Workflow Automation Tool
14 lines (13 loc) • 891 B
TypeScript
import { AgentResourceRepository } from '../repositories/agent-resource.repository';
import { AgentThreadRepository } from '../repositories/agent-thread.repository';
import type { IntegrationMessageContext, IntegrationMessageContextStore } from './integration-tools';
export declare class IntegrationMessageContextService implements IntegrationMessageContextStore {
private readonly threadRepository;
private readonly resourceRepository;
constructor(threadRepository: AgentThreadRepository, resourceRepository: AgentResourceRepository);
getLatest(threadId: string): Promise<IntegrationMessageContext | null>;
setLatest(threadId: string, resourceId: string, context: IntegrationMessageContext): Promise<void>;
private ensureResource;
private parseMetadata;
}
export declare function isIntegrationMessageContext(value: unknown): value is IntegrationMessageContext;