{ "cells": [ { "cell_type": "markdown", "id": "3631f2b9-aa79-472e-a9d6-9125a90ee704", "metadata": {}, "source": [ "# How to configure multiple streaming modes at the same time" ] }, { "cell_type": "markdown", "id": "858c7499-0c92-40a9-bd95-e5a5a5817e92", "metadata": {}, "source": [ "This guide covers how to configure multiple streaming modes at the same time." ] }, { "cell_type": "markdown", "id": "7c2f84f1-0751-4779-97d4-5cbb286093b7", "metadata": {}, "source": [ "## Setup\n", "\n", "First, let's install the required packages and set our API keys" ] }, { "cell_type": "code", "execution_count": 1, "id": "6b4285e4-7434-4971-bde0-aabceef8ee7e", "metadata": {}, "outputs": [], "source": [ "%%capture --no-stderr\n", "%pip install -U langgraph langchain-openai langchain-community" ] }, { "cell_type": "code", "execution_count": null, "id": "f7f9f24a-e3d0-422b-8924-47950b2facd6", "metadata": {}, "outputs": [], "source": [ "import getpass\n", "import os\n", "\n", "\n", "def _set_env(var: str):\n", " if not os.environ.get(var):\n", " os.environ[var] = getpass.getpass(f\"{var}: \")\n", "\n", "\n", "_set_env(\"OPENAI_API_KEY\")" ] }, { "cell_type": "markdown", "id": "4e48aa9e", "metadata": {}, "source": [ "
Set up LangSmith for LangGraph development
\n", "\n", " Sign up for LangSmith to quickly spot issues and improve the performance of your LangGraph projects. LangSmith lets you use trace data to debug, test, and monitor your LLM apps built with LangGraph — read more about how to get started here. \n", "
\n", "