@fleek-platform/agents-ui
Version:
The Fleek Platform Agents UI provides a simple interface for deploying, monitoring, and configuring your agents––making management straightforward
18 lines (17 loc) • 645 B
TypeScript
import type { Message } from '@langchain/langgraph-sdk';
import type { MessageTuple } from './types';
type TimestampMessage = Message & {
timestamp: number;
};
/**
* Extracts and parses the timestamp from a message.
* Handles different timestamp formats (number, string date).
* Returns 0 if the timestamp is invalid or missing.
*/
export declare const getMessageTimestamp: (msg: TimestampMessage) => number;
/**
* Checks if a message should be visible in the chat interface.
* Filters out messages tagged as 'internal' or with empty content.
*/
export declare const isVisibleMessage: (t: MessageTuple<string>) => boolean;
export {};