Skip to main content

UnifiedMessageModifier

@codebolt/agent


Interface: UnifiedMessageModifier

Defined in: packages/agent/src/unified/types/types.ts:174

Unified message modifier interface

Methods

addProcessor()

addProcessor(processor: Processor): void;

Defined in: packages/agent/src/unified/types/types.ts:178

Add a processor to the modifier

Parameters

ParameterType
processorProcessor

Returns

void


clearContext()

clearContext(): void;

Defined in: packages/agent/src/unified/types/types.ts:184

Clear all context

Returns

void


getContext()

getContext(key: string): any;

Defined in: packages/agent/src/unified/types/types.ts:182

Get context value

Parameters

ParameterType
keystring

Returns

any


processMessage()

processMessage(input: any): Promise<UnifiedMessageOutput>;

Defined in: packages/agent/src/unified/types/types.ts:176

Process and modify input messages

Parameters

ParameterType
inputany

Returns

Promise<UnifiedMessageOutput>


setContext()

setContext(key: string, value: any): void;

Defined in: packages/agent/src/unified/types/types.ts:180

Set context value

Parameters

ParameterType
keystring
valueany

Returns

void