Skip to main content
Glama
PSPDFKit

Nutrient Document Engine MCP Server

by PSPDFKit
configuration.ts703 B
/** * Define the configurable parameters for the agent. */ import { Annotation } from "@langchain/langgraph"; import { SYSTEM_PROMPT_TEMPLATE } from "./prompts.js"; import { RunnableConfig } from "@langchain/core/runnables"; export const ConfigurationSchema = Annotation.Root({ /** * The system prompt to be used by the agent. */ systemPromptTemplate: Annotation<string>, }); export function ensureConfiguration( config: RunnableConfig ): typeof ConfigurationSchema.State { /** * Ensure the defaults are populated. */ const configurable = config.configurable ?? {}; return { systemPromptTemplate: configurable.systemPromptTemplate ?? SYSTEM_PROMPT_TEMPLATE, }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PSPDFKit/nutrient-document-engine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server