@threadplane/chatFunctionv0.3.4

submitMessage

Submits a trimmed message to the agent. Returns the trimmed string on dispatch, or null for empty or blocked input.

import { submitMessage } from '@threadplane/chat';

Declaration · overload 1

export declare function submitMessage(agent: Agent, text: string): string | null;

Parameters

agent · required
Agent
text · required
string

Returns

string | null