Pure functions to construct message bodies and mention annotations for Lark bot dispatch.
// Source: https://github.com/larksuite/openclaw-lark | License: MIT | Copyright 2026 Lark Technologies Pte. Ltd
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Copyright (c) 2026 ByteDance Ltd. and/or its affiliates
* SPDX-License-Identifier: MIT
*
* Pure construction functions for the agent dispatch pipeline.
*
* All functions in this module are side-effect-free: they build data
* structures (message bodies, envelope payloads, inbound context) but
* never perform I/O, send messages, or mutate external state.
*/
import type { HistoryEntry } from 'openclaw/plugin-sdk/reply-history';
import { buildPendingHistoryContextFromMap } from 'openclaw/plugin-sdk/reply-history';
import type { MessageContext } from '../types';
import type { LarkClient } from '../../cor
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key