run
public ComponentClientIterator run(String componentId,
String version,
String action,
boolean stream,
Map<String,Object> parameters)
throws IOException,
AppBuilderServerException
运行Component,根据输入的问题、会话ID、文件ID数组以及是否以流模式等信息返回结果,返回ComponentClientIterator迭代器。
- 参数:
componentId - 组件ID
version - 组件版本
action - 参数动作
stream - 是否以流的形式返回结果
parameters - 参数列表
- 返回:
- ComponentCientIterator 迭代器,包含 ComponentCientIterator 的运行结果
- 抛出:
IOException - 如果在 I/O 操作过程中发生错误
AppBuilderServerException - 如果 AppBuilder 服务器返回错误