@aws/genai-plugin-langgraph-agent-for-backstage

中文文档
0.8.0发布于 2026/08/06Apache-2.0TypeScriptCommonJS构建来源已验证近 30 天下载 3589

LangGraph agent module package for the GenAI AWS plugins for Backstage

原始使用文档
文档目录3 节
  1. Configuration
  2. Global
  3. Per-agent

Generative AI plugin for Backstage - LangGraph Agent Type

This package implements an agent for the Generative AI plugin for Backstage based on LangGraph.js.

Features:

  1. ReAct pattern to use available tools to answer prompts
  2. Choose between Amazon Bedrock or OpenAI as the model provider
  3. Optionally use the Backstage sqlite/Postgres database as a checkpoint store
  4. Integrate with LangFuse for observability

Configuration

This agent can be configured at two different levels, global and per-agent

Global

Global configuration values apply to all agents, all of this is optional:

genai:
  langgraph:
    memory: # (Optional) Memory store to use
    recursionLimit: # (Optional) Limit the number of graph supersteps (default 25)
    langfuse: # (Optional) Configuration for LangFuse observability
      baseUrl: http://localhost:3001 # (Required) LangFuse URL
      publicKey: pk-aaa # (Required) Public key
      secretKey: sk-bbb # (Required) Secret key

The available options for memory are:

  • in-memory: (Default) Store the agent state in memory
  • backstage: Uses the Backstage database to store agent state, either sqlite or PostgresQL depending on the configuration

Per-agent

Per-agent configuration only applies to the agent for which it corresponds. The available parameters are:

genai:
  agents:
    general:
      description: [...]
      prompt: [...]
      langgraph:
        messagesMaxTokens: 100000 # (Required) Prune message history to maximum of this number of tokens
        temperature: 0 # (Optional) Model temperature
        maxTokens: 4000 # (Optional) Maximum output tokens
        topP: 0.9 # (Optional) Model topP
        # Only include the subsequent section for your model provider
        # Bedrock only
        bedrock:
          modelId: 'anthropic.claude-3-5-sonnet-20241022-v2:0' # (Required) Bedrock model ID
          region: us-west-2 # (Required) Bedrock AWS region
        # OpenAI only
        openai:
          apiKey: ${OPENAI_API_KEY} # (Required) OpenAI model name
          modelName: 'gpt-3.5-turbo-instruct' # (Optional) OpenAI model name
          baseUrl: ${OPENAI_API_BASE_URL} # (Optional) URL for OpenAI API endpoint
        ollama:
          model: ${OLLAMA_MODEL} # (Required) Ollama model name
          baseUrl: ${OLLAMA_BASE_URL} # (Required) Base URL for Ollama

版本与发布记录

@aws/genai-plugin-langgraph-agent-for-backstage 共发布 12 个版本,首次发布于 2024/12/10;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.8.0latest2026/08/063 个月前
0.7.22026/04/236 个月前
0.7.12026/02/059 个月前
0.6.02025/11/1411 个月前
0.5.02025/09/191.1 年前
0.4.12025/07/181.3 年前

关于 @aws/genai-plugin-langgraph-agent-for-backstage 的常见问题

@aws/genai-plugin-langgraph-agent-for-backstage 是什么?

LangGraph agent module package for the GenAI AWS plugins for Backstage

如何安装 @aws/genai-plugin-langgraph-agent-for-backstage?

在项目目录运行 npm install @aws/genai-plugin-langgraph-agent-for-backstage,或使用 pnpm add / yarn add / bun add。

@aws/genai-plugin-langgraph-agent-for-backstage 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@aws/genai-plugin-langgraph-agent-for-backstage 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aws/genai-plugin-langgraph-agent-for-backstage 可以商用吗?

@aws/genai-plugin-langgraph-agent-for-backstage 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@aws/genai-plugin-langgraph-agent-for-backstage 的下载量有多少?

根据 npm 官方下载统计,@aws/genai-plugin-langgraph-agent-for-backstage 在 2026/10/08 – 2026/11/06 这 30 天内被下载 3,589 次,日均约 120 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aws/genai-plugin-langgraph-agent-for-backstage 还在维护吗?

最新版本 0.8.0 发布于 2026/08/06(3 个月前);至今共发布 12 个版本,其中过去 12 个月发布了 4 个;首次发布于 2024/12/10。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。