For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/genui/openui/core/interfaces/ActionEvent.md.
Lynx
  • 简体中文
  • 接口: ActionEvent

    交互组件触发的结构化 action 事件。

    属性

    formName?

    optional formName?: string

    触发这个 action 的表单名称(如果有)。


    formState?

    optional formState?: Record<string, unknown>

    action 发生时的原始表单状态,即所有字段的值。


    humanFriendlyMessage

    humanFriendlyMessage: string

    这个 action 的可读标签(在对话中显示为用户消息)。


    params

    params: Record<string, unknown>

    特定于 action 的参数(例如 OpenUrl 对应 { url },Custom 对应自定义参数)。


    type

    type: BuiltinActionType | string & object

    action 类型。内置类型见 BuiltinActionType。

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。