🔄 Big News! bazed.ai is now sagentic.ai. Same vision, new name!

Skip to content

@sagentic-ai/sagentic-af / otherwise

otherwise() ​

ts
otherwise<S, This, Args, Return>(target, context): (this, ...args) => Return

Decorator for defining the default reaction to unstructured messages.

Type parameters ​

• S

• This

• Args extends [S, string]

• Return

Parameters ​

• target

• context: ClassMethodDecoratorContext<This, (this, ...args) => Return>

Returns ​

Function

Parameters ​

• this: This

• ...args: Args

Returns ​

Return

Source ​

src/agents/reactive.ts:63