执行任务,返回结果消息(默认输出到 System.out)
(AgentMessage task)
| 150 | * 执行任务,返回结果消息(默认输出到 System.out) |
| 151 | */ |
| 152 | public AgentMessage execute(AgentMessage task) { |
| 153 | return execute(task, System.out); |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * 执行任务并将流式输出写入指定 PrintStream。并发执行时为每个步骤传入独立的 PrintStream, |