For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/sapi/service/type-aliases/ServiceHandler.md.
  • 简体中文
  • Type Alias: ServiceHandler

    type ServiceHandler = (input: Record<string, unknown>) => unknown | Promise<unknown>;

    Defined in: sapi/service/client.ts:23

    进程内服务处理函数(SAPI 同进程注册)。

    Parameters

    ParameterType
    inputRecord<string, unknown>

    Returns

    unknown | Promise<unknown>