@threadplane/langgraphInterfacev0.3.7

LangGraphThreadDirectoryOptions

What createLangGraphThreadDirectory takes: how to reach the deployment, and where project names are kept.

import type { LangGraphThreadDirectoryOptions } from '@threadplane/langgraph';

Declaration

export interface LangGraphThreadDirectoryOptions  {
  readonly apiUrl?: string;
  readonly browserOrigin?: string;
  readonly client?: LangGraphThreadsClient;
  readonly clientOptions?: LangGraphClientOptions;
  readonly projects?: ProjectStore | false;
  readonly titleFallback?: string;
}

Members

apiUrl

LangGraph API base. Ignored when client is supplied.

readonly apiUrl?: string;

browserOrigin

When set, apiUrl must be an absolute URL on this origin.

readonly browserOrigin?: string;

client

A ready SDK client, for example one shared with the app.

readonly client?: LangGraphThreadsClient;

clientOptions

Options for the client built from apiUrl. Requests never retry.

readonly clientOptions?: LangGraphClientOptions;

projects

Project names. Defaults to the LangGraph Store API (createLangGraphProjectStore); false turns projects off. While the store cannot be read, the snapshot has no projects and project commands reject.

readonly projects?: ProjectStore | false;

titleFallback

Title for threads without one. Defaults to 'New chat'.

readonly titleFallback?: string;