LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangGraph
  • Web
  • Channels
  • Pregel
  • Prebuilt
  • Remote
LangGraph SDK
  • Client
  • Auth
  • React
  • Logging
  • React Ui
  • Server
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
  • Store
LangGraph Checkpoint Redis
  • Shallow
  • Store
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
  • Cli
LangGraph API
LangGraph CLI
LangGraph CUA
  • Utils
LangGraph Supervisor
LangGraph Swarm
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangGraph
WebChannelsPregelPrebuiltRemote
LangGraph SDK
ClientAuthReactLoggingReact UiServer
LangGraph Checkpoint
LangGraph Checkpoint MongoDB
LangGraph Checkpoint Postgres
Store
LangGraph Checkpoint Redis
ShallowStore
LangGraph Checkpoint SQLite
LangGraph Checkpoint Validation
Cli
LangGraph API
LangGraph CLI
LangGraph CUA
Utils
LangGraph Supervisor
LangGraph Swarm
Language
Theme
JavaScript@langchain/langgraph-cuautils
Moduleā—Since v0.0

utils

Copy
import { ... } from "@langchain/langgraph-cua/utils";

Functions

function
getInstance→ Promise<UbuntuInstance | BrowserInstance | WindowsInstance>
function
getScrapybaraClient→ ScrapybaraClient
function
getToolOutputs→ ResponseComputerToolCall[] | undefined
function
isComputerCallToolMessage→ message is ToolMessage<MessageStructure<MessageToolSet>>
function
isComputerToolCall→ toolOutputs is ResponseComputerToolCall[]
function
stopInstance→ Promise<void>
View source on GitHub

Gets an instance from Scrapybara.

Gets the Scrapybara client, using the API key from the graph's configuration object.

Gets the tool outputs from an AIMessage.

Checks if a message is a computer call tool message.

Checks if the given tool outputs are a computer call.

Stops an instance by its ID.