| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
Present.Builder |
body(String body)
透传消息体
示例值:raw
|
Present |
build() |
Present.Builder |
callbackInfo(String callbackInfo)
透传数据上屏后,回调给业务方的数据,仅在 type = card 时会回调
示例值:可以是纯文本:"callback raw data";也可以是 json string:"{\"biz_id":\"search_context_id\"}"
|
Present.Builder |
callbackUrl(String callbackUrl)
透传数据上屏后,回调业务方的 url;支持 Open API 与 RPC 两种方式
示例值:Open API - https://open.feishu-boe.cn/open-apis/lark_ai/callback;RPC - sd://p.s.m
|
Present.Builder |
cardTemplateId(String cardTemplateId)
仅 type = template_card 时使用,代表模版卡片的模版信息
示例值:default
|
Present.Builder |
cardVariables(TemplateCardVariables cardVariables)
仅 type = template_card 使用,对应到模版卡片中模版里的变量信息,类型应该是map
|
Present.Builder |
interactable(Boolean interactable)
用来定义工具输出的卡片是否为交互卡片
示例值:true
|
Present.Builder |
operationType(PresentOperationTypeEnum operationType)
在交互卡片的场景下,如果用户完成交互,根据交互行为 Tool 对该交互行为做出的响应
示例值:UPDATE
|
Present.Builder |
operationType(String operationType)
在交互卡片的场景下,如果用户完成交互,根据交互行为 Tool 对该交互行为做出的响应
示例值:UPDATE
|
Present.Builder |
operationUrl(String operationUrl)
卡片后续链路交互的请求地址
示例值:https://open.feishu-boe.cn/open-apis/lark_ai/operation
|
Present.Builder |
type(PresentPresentTypeEnum type)
透传数据类型
示例值:card
|
Present.Builder |
type(String type)
透传数据类型
示例值:card
|
public Present.Builder type(String type)
示例值:card
type - public Present.Builder type(PresentPresentTypeEnum type)
示例值:card
type - PresentPresentTypeEnumpublic Present.Builder body(String body)
示例值:raw
body - public Present.Builder operationType(String operationType)
示例值:UPDATE
operationType - public Present.Builder operationType(PresentOperationTypeEnum operationType)
示例值:UPDATE
operationType - PresentOperationTypeEnumpublic Present.Builder interactable(Boolean interactable)
示例值:true
interactable - public Present.Builder operationUrl(String operationUrl)
示例值:https://open.feishu-boe.cn/open-apis/lark_ai/operation
operationUrl - public Present.Builder callbackUrl(String callbackUrl)
示例值:Open API - https://open.feishu-boe.cn/open-apis/lark_ai/callback;RPC - sd://p.s.m
callbackUrl - public Present.Builder callbackInfo(String callbackInfo)
示例值:可以是纯文本:"callback raw data";也可以是 json string:"{\"biz_id":\"search_context_id\"}"
callbackInfo - public Present.Builder cardTemplateId(String cardTemplateId)
示例值:default
cardTemplateId - public Present.Builder cardVariables(TemplateCardVariables cardVariables)
示例值:
cardVariables - public Present build()
Copyright © 2025. All rights reserved.