Typed streaming interface for ReactAgent with tool calling support
// Source: https://github.com/langchain-ai/langgraphjs | License: MIT | Copyright 2024 LangChain
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Stream types for ReactAgent instances created with `createAgent`.
*
* This module provides the stream interface that adds tool calling capabilities
* on top of the base graph streaming functionality.
*
* @module
*/
import type {
DefaultToolCall,
AIMessage,
ToolCallWithResult,
} from "../../types.messages.js";
import type { BagTemplate } from "../../types.template.js";
import type { BaseStream } from "./base.js";
import type { UseStreamOptions } from "../types.js";
/**
* Stream interface for ReactAgent instances created with `createAgent`.
*
* Extends {@link UseGraphStream} with tool calling capabilities. To
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key