次の方法で共有


AgentRunResponse type

エージェントは、ストリームをサポートして応答を実行します。

type AgentRunResponse = PromiseLike<ThreadRun> & {
  stream: () => Promise<AgentEventMessageStream>
}