{
  "id": "task_libraries:llm/javascript",
  "path": "/exapedia/javascript-llm-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript LLM libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript LLM libraries send prompts to large language models and return their text, tool calls, and structured output to an application. A provider SDK calls one company's model API, while a toolkit wraps several providers behind one interface. These libraries connect the chat assistants, AI agents, and summarization features in web apps to the models behind them."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript LLM libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#anthropic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#openai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#googlegenai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-bedrock-runtime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mistralai-mistralai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#langchain-openai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#huggingface-transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#anthropic",
          "label": [
            {
              "t": "fact",
              "fact": "F1"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F136"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Bundled local model runtime",
            "SDK-managed tool loop"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#anthropic",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#openai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F149"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#ai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F167"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#googlegenai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F183"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-bedrock-runtime",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F201"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#mistralai-mistralai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F221"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F232"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#langchain-openai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#huggingface-transformers",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F271"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F272"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "anthropic",
          "name": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/anthropics/anthropic-sdk-typescript"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@anthropic-ai/sdk"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/anthropics/anthropic-sdk-typescript",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import Anthropic from \"@anthropic-ai/sdk\";\n\nconst client = new Anthropic();\nconst message = await client.messages.create({\n  model: \"claude-opus-5-5\", max_tokens: 128,\n  messages: [{ role: \"user\", content: \"Say hello.\" }],\n});\nconsole.log(message.content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://platform.claude.com/docs/en/api/sdks/typescript",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20%40anthropic-ai/sdk%20native%20model%20generation%20response%20streams%20tool%20calls%20schemas%20token%20counting%20and%20local%20service%20clients&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "openai",
          "name": [
            {
              "t": "fact",
              "fact": "F149"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/openai/openai-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/openai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F36"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-node",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F149"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cline/cline",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F165"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "private async *createResponseStreamHttp(\n\t\tmodelInfo: ModelInfo,\n\t\tparams: OpenAI.Responses.ResponseCreateParamsStreaming,\n\t): ApiStream {\n\t\tconst client = this.ensureClient()\n\t\tLogger.debug(`OpenAI Responses Input (HTTP): ${JSON.stringify(params.input)}`)\n\t\tconst stream = await client.responses.create(params, { signal: this.abortController?.signal })\n\t\tyield* this.processResponsesEvents(stream, modelInfo)\n\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cline/cline/blob/9dea336cedccc52024bb0dd1641b4e4e0a9bc7f4/src/core/api/providers/openai-native.ts#L266-L274",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F164"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20openai%20native%20model%20generation%20response%20streams%20tool%20calls%20schemas%20token%20counting%20and%20local%20service%20clients&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F149"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import OpenAI from \"openai\";\n\nconst client = new OpenAI();\nconst response = await client.responses.create({\n  model: \"gpt-5.5\", input: \"Say hello.\",\n});\nconsole.log(response.output_text);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/openai/openai-node",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "ai",
          "name": [
            {
              "t": "fact",
              "fact": "F167"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/vercel/ai"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/ai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/vercel/ai",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F283"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\n\nconst { text } = await generateText({\n  model: openai(\"gpt-5.5\"), prompt: \"Say hello.\",\n});\nconsole.log(text);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://ai-sdk.dev/providers/ai-sdk-providers/openai",
                  "label": [
                    {
                      "t": "text",
                      "text": "Generating text docs"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=ai%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F167"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "googlegenai",
          "name": [
            {
              "t": "fact",
              "fact": "F183"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/googleapis/js-genai"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@google/genai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F190"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/js-genai",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F71"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F72"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/open-multi-agent/open-multi-agent",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F199"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async chat(messages: LLMMessage[], options: LLMChatOptions): Promise<LLMResponse> {\n    assertValidMessages(messages)\n    const id = generateId()\n    const contents = toGeminiContents(messages, options)\n\n    const response = await this.#client.models.generateContent({\n      model: options.model,\n      contents,\n      config: buildConfig(options),\n    })\n\n    return fromGeminiResponse(response, id, options.model)\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/open-multi-agent/open-multi-agent/blob/ad07d8664b28ea60e8f4a1a5b12da9a7a3b9fc44/packages/core/src/llm/gemini.ts#L474-L486",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F198"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20applications%20using%20%40google/genai%20native%20model%20generation%20response%20streams%20tool%20calls%20schemas%20token%20counting%20and%20local%20service%20clients&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F183"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { GoogleGenAI } from \"@google/genai\";\n\nconst ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.8-flash\", contents: \"Say hello.\",\n});\nconsole.log(response.text);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/js-genai",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F188"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aws-sdk-client-bedrock-runtime",
          "name": [
            {
              "t": "fact",
              "fact": "F201"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aws/aws-sdk-js-v3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@aws-sdk/client-bedrock-runtime"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F287"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/aws/aws-sdk-js-v3",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F201"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F219"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async _generateNonStreaming(\n    messages: BaseMessage[],\n    options: Partial<this[\"ParsedCallOptions\"]>,\n    _runManager?: CallbackManagerForLLMRun\n  ): Promise<ChatResult> {\n    try {\n      const { converseMessages, converseSystem } =\n        convertToConverseMessages(messages);\n      const params = this.invocationParams(options);\n      applyCachePointsToConversePayload({\n        cacheControl: options.cache_control,\n        system: converseSystem,\n        messages: converseMessages,\n        params,\n        modelId: this.applicationInferenceProfile ?? this.model,\n      });\n\n      const command = new ConverseCommand({\n        modelId: this.applicationInferenceProfile ?? this.model,\n        messages: converseMessages,\n        ...(Array.isArray(converseSystem) && converseSystem.length > 0\n          ? { system: converseSystem }\n          : {}),\n        requestMetadata: options.requestMetadata,\n        ...params,\n      });\n      const response = await this.caller.callWithOptions(\n        { signal: options.signal, maxRetries: options.maxRetries },\n        async () => {\n          try {\n            return await this.client.send(command, {\n              abortSignal: options.signal,\n            });\n          } catch (error) {\n            throw normalizeBedrockError(error);\n          }\n        }\n      );\n      const { output, ...responseMetadata } = response;\n      if (!output?.message) {\n        throw new Error(\"No message found in Bedrock response.\");\n      }\n\n      const message = convertConverseMessageToLangChainMessage(\n        output.message,\n        responseMetadata\n      );\n      return {\n        generations: [\n          {\n            text: typeof message.content === \"string\" ? message.content : \"\",\n            message,\n          },\n        ],\n      };\n    } catch (error) {\n      throw normalizeBedrockError(error);\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs/blob/7309848b94f1c9940197e3ebfc9a63bf508b3f15/libs/providers/langchain-aws/src/chat_models.ts#L1077-L1135",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F218"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40aws-sdk/client-bedrock-runtime%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F201"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { BedrockRuntimeClient, ConverseCommand } from \"@aws-sdk/client-bedrock-runtime\";\n\nconst client = new BedrockRuntimeClient({ region: \"us-east-1\" });\nconst response = await client.send(new ConverseCommand({\n  modelId: \"amazon.nova-lite-v1:0\",\n  messages: [{ role: \"user\", content: [{ text: \"Say hello.\" }] }],\n}));\nconsole.log(response.output?.message?.content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "Converse API docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F206"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "mistralai-mistralai",
          "name": [
            {
              "t": "fact",
              "fact": "F221"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mistralai/client-ts"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@mistralai/mistralai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F292"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mistralai/client-ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F239"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async generateChat(messages: Message[]): Promise<LLMResponse> {\n    await this.ensureClient();\n    const formattedMessages = messages.map((msg) => ({\n      role: msg.role as \"system\" | \"user\" | \"assistant\",\n      content:\n        typeof msg.content === \"string\"\n          ? msg.content\n          : JSON.stringify(msg.content),\n    }));\n\n    const response = await this.client.chat.complete({\n      model: this.model,\n      messages: formattedMessages,\n    });\n\n    if (!response || !response.choices || response.choices.length === 0) {\n      return {\n        content: \"\",\n        role: \"assistant\",\n      };\n    }\n\n    const message = response.choices[0].message;\n\n    return {\n      content: this.contentToString(message.content),\n      role: message.role || \"assistant\",\n    };\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/mem0ai/mem0/blob/fff8a6472512d1bc1a4bccab8c645b65a1df7fe5/mem0-ts/src/oss/src/llms/mistral.ts#L95-L123",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F238"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40mistralai/mistralai%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F221"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { Mistral } from \"@mistralai/mistralai\";\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\nconst response = await client.chat.complete({\n  model: \"mistral-large-latest\",\n  messages: [{ role: \"user\", content: \"Say hello.\" }],\n});\nconsole.log(response.choices?.[0]?.message.content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mistralai/client-ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F226"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "langchain-openai",
          "name": [
            {
              "t": "fact",
              "fact": "F241"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/langchain-ai/langchainjs"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@langchain/openai"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F295"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F243"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/langchain-ai/langchainjs",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/CopilotKit/CopilotKit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function chatNode(state: AgentState, config: RunnableConfig) {\n  const model = makeChatOpenAI(config, {\n    model: REASONING_MODEL,\n    useResponsesApi: true,\n    reasoning: { effort: \"low\", summary: \"auto\" },\n    // Token-level streaming of the OpenAI Responses API is buggy in\n    // @langchain/openai@1.4.4: the reasoning-summary delta (index =\n    // summary_index = 0) and the answer output_text delta (index =\n    // content_index = 0) are pushed to the SAME content-block index, so the\n    // streaming reducer collapses them into a single `type: \"reasoning\"`\n    // block whose `text` field silently swallows the answer. @ag-ui/langgraph\n    // then reads `content[0].type === \"reasoning\"` for every chunk and routes\n    // the whole turn (answer included) to REASONING_MESSAGE_* events — no\n    // assistant TEXT_MESSAGE ever renders, so the D6 reasoning-display probe\n    // reds with `text-unstable`. The NON-streaming Responses converter\n    // (`convertResponsesMessageToAIMessage`) processes final output *items*\n    // (not indexed deltas) and correctly yields TWO separate blocks — a\n    // `reasoning` block and a `text` block. Disabling token streaming forces\n    // that correct path; the bridge then emits both a reasoning message and\n    // the assistant answer, matching langgraph-python's rendering.\n    disableStreaming: true,\n  });\n\n  const response = await model.invoke(\n    [new SystemMessage({ content: SYSTEM_PROMPT }), ...state.messages],\n    config,\n  );\n\n  return { messages: response };\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/CopilotKit/CopilotKit/blob/567211b7edff7dde57cfc9b617655344004253c0/showcase/integrations/langgraph-typescript/src/agent/reasoning-agent.ts#L54-L83",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40langchain/openai%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F241"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { ChatOpenAI } from \"@langchain/openai\";\n\nconst model = new ChatOpenAI({ model: \"gpt-5.4-mini\" });\nconsole.log((await model.invoke(\"Say hello.\")).content);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.langchain.com/oss/javascript/integrations/chat/openai",
                  "label": [
                    {
                      "t": "text",
                      "text": "ChatOpenAI docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F246"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "huggingface-transformers",
          "name": [
            {
              "t": "fact",
              "fact": "F261"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/huggingface/transformers.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@huggingface/transformers"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F296"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ]
            }
          ],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F280"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function generate(messages) {\n  // Retrieve the text-generation pipeline.\n  const [tokenizer, model] = await TextGenerationPipeline.getInstance();\n\n  const inputs = tokenizer.apply_chat_template(messages, {\n    add_generation_prompt: true,\n    return_dict: true,\n  });\n\n  let startTime;\n  let numTokens = 0;\n  let tps;\n  const token_callback_function = () => {\n    startTime ??= performance.now();\n\n    if (numTokens++ > 0) {\n      tps = (numTokens / (performance.now() - startTime)) * 1000;\n    }\n  };\n  const callback_function = (output) => {\n    self.postMessage({\n      status: \"update\",\n      output,\n      tps,\n      numTokens,\n    });\n  };\n\n  const streamer = new TextStreamer(tokenizer, {\n    skip_prompt: true,\n    skip_special_tokens: true,\n    callback_function,\n    token_callback_function,\n  });\n\n  // Tell the main thread we are starting\n  self.postMessage({ status: \"start\" });\n\n  const { past_key_values, sequences } = await model.generate({\n    ...inputs,\n    past_key_values: past_key_values_cache,\n\n    // Sampling\n    do_sample: false,\n\n    max_new_tokens: 1024,\n    streamer,\n    stopping_criteria,\n    return_dict_in_generate: true,\n  });\n  past_key_values_cache = past_key_values;\n\n  const decoded = tokenizer.batch_decode(sequences, {\n    skip_special_tokens: true,\n  });\n\n  // Send the output back to the main thread\n  self.postMessage({\n    status: \"complete\",\n    output: decoded,\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/huggingface/transformers.js-examples/blob/204b0948e88cd2bdc046316e78b754359653caea/llama-3.2-webgpu/src/worker.js#L32-L93",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F279"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40huggingface/transformers%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { pipeline } from \"@huggingface/transformers\";\n\nconst generator = await pipeline(\"text-generation\", \"onnx-community/SmolLM2-135M-ONNX\");\nconsole.log(await generator(\"Once upon a time,\", { max_new_tokens: 8 }));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://huggingface.co/docs/transformers.js/api/pipelines",
                  "label": [
                    {
                      "t": "text",
                      "text": "Pipelines docs"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F266"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "What is the Vercel AI SDK?",
      "a": [
        {
          "t": "link",
          "href": "#ai",
          "label": [
            {
              "t": "text",
              "text": "AI SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a provider-agnostic TypeScript toolkit for AI applications and agents in Next.js, React, Svelte, Vue, Angular, and Node.js. Its generateText and streamText functions generate or stream text from a supported model."
        }
      ]
    },
    {
      "q": "What is the Anthropic SDK?",
      "a": [
        {
          "t": "link",
          "href": "#anthropic",
          "label": [
            {
              "t": "text",
              "text": "Anthropic"
            }
          ]
        },
        {
          "t": "text",
          "text": " is the official TypeScript library for the Claude API in server-side JavaScript and TypeScript. Its toolRunner invokes runnable tool helpers that the application registers."
        }
      ]
    },
    {
      "q": "What is the Bedrock Converse API?",
      "a": [
        {
          "t": "text",
          "text": "Converse sends messages to an Amazon Bedrock model through one interface that works with every model that supports messages. "
        },
        {
          "t": "link",
          "href": "#aws-sdk-client-bedrock-runtime",
          "label": [
            {
              "t": "text",
              "text": "@aws-sdk/client-bedrock-runtime"
            }
          ]
        },
        {
          "t": "text",
          "text": " calls it from Node.js, browsers, and React Native."
        }
      ]
    },
    {
      "q": "How do OpenAI structured outputs work?",
      "a": [
        {
          "t": "link",
          "href": "#openai",
          "label": [
            {
              "t": "text",
              "text": "OpenAI"
            }
          ]
        },
        {
          "t": "text",
          "text": " parses a model response into data shaped by a supplied schema. Refusals and incomplete responses still need handling in application code."
        }
      ]
    },
    {
      "q": "AI SDK vs LangChain: what is the difference?",
      "a": [
        {
          "t": "link",
          "href": "#ai",
          "label": [
            {
              "t": "text",
              "text": "AI SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " generates and streams text from many providers through one TypeScript interface. "
        },
        {
          "t": "link",
          "href": "#langchain-openai",
          "label": [
            {
              "t": "text",
              "text": "@langchain/openai"
            }
          ]
        },
        {
          "t": "text",
          "text": " connects OpenAI chat models to LangChain.js."
        }
      ]
    },
    {
      "q": "What is Transformers.js?",
      "a": [
        {
          "t": "link",
          "href": "#huggingface-transformers",
          "label": [
            {
              "t": "text",
              "text": "Transformers.js"
            }
          ]
        },
        {
          "t": "text",
          "text": " runs pretrained Hugging Face models directly in the browser without a server. Its API mirrors the Python transformers library."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @anthropic-ai/sdk",
      "display": "Anthropic",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @anthropic-ai/sdk",
      "display": "261.6M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, @anthropic-ai/sdk",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @anthropic-ai/sdk",
      "display": "1.9.0",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @anthropic-ai/sdk",
      "display": "v1.9.0",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @anthropic-ai/sdk",
      "display": "2.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Streaming responses, @anthropic-ai/sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Tool calling, @anthropic-ai/sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Schema responses, @anthropic-ai/sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Token counting, @anthropic-ai/sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, @anthropic-ai/sdk",
      "display": "npm install @anthropic-ai/sdk",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, @anthropic-ai/sdk",
      "display": "Connects server-side JavaScript and TypeScript applications to the Claude API.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @anthropic-ai/sdk",
      "display": "Parses typed structured responses",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @anthropic-ai/sdk",
      "display": "Use schema helpers to validate and parse structured JSON responses.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, @anthropic-ai/sdk",
      "display": "Runs registered tool functions",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, @anthropic-ai/sdk",
      "display": "Pass runnable functions to the beta toolRunner helper.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, @anthropic-ai/sdk",
      "display": "Eager tools outlive interrupted replies",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, @anthropic-ai/sdk",
      "display": "Defer non-repeatable calls with deferToolCall before they start.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, @anthropic-ai/sdk",
      "display": "import Anthropic from '@anthropic-ai/sdk';\n\nconst client = new Anthropic({\n  apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted\n});\n\nconst message = await client.messages.create({\n  max_tokens: 1024,\n  messages: [{ role: 'user', content: 'Hello, Claude' }],\n  model: 'claude-opus-5-5',\n});\n\nconsole.log(message.content);\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Project function, @anthropic-ai/sdk",
      "display": "@withRetry()\n\tasync *createMessage(systemPrompt: string, messages: ClineStorageMessage[], tools?: AnthropicTool[]): ApiStream {\n\t\tconst client = this.ensureClient()\n\n\t\tconst model = this.getModel()\n\t\tlet stream: AnthropicStream<Anthropic.RawMessageStreamEvent> | AsyncIterable<BetaRawMessageStreamEvent>\n\n\t\tconst useFastMode = model.id.endsWith(ANTHROPIC_FAST_MODE_SUFFIX)\n\t\tconst baseModelId = useFastMode ? model.id.slice(0, -ANTHROPIC_FAST_MODE_SUFFIX.length) : model.id\n\t\tconst modelId = baseModelId.endsWith(CLAUDE_SONNET_1M_SUFFIX)\n\t\t\t? baseModelId.slice(0, -CLAUDE_SONNET_1M_SUFFIX.length)\n\t\t\t: baseModelId\n\t\tconst enable1mContextWindow = baseModelId.endsWith(CLAUDE_SONNET_1M_SUFFIX)\n\t\tconst fastModeBetas = enable1mContextWindow\n\t\t\t? [ANTHROPIC_FAST_MODE_BETA, \"context-1m-2025-08-07\"]\n\t\t\t: [ANTHROPIC_FAST_MODE_BETA]\n\t\tconst createFastModeMessage = (\n\t\t\tbody: AnthropicMessageCreateParamsStreaming,\n\t\t): Promise<AsyncIterable<BetaRawMessageStreamEvent>> => {\n\t\t\treturn (\n\t\t\t\tclient.beta.messages.create as unknown as (\n\t\t\t\t\tparams: BetaMessageCreateParamsStreaming & { speed: \"fast\" },\n\t\t\t\t) => Promise<AsyncIterable<BetaRawMessageStreamEvent>>\n\t\t\t)({\n\t\t\t\t...body,\n\t\t\t\tbetas: fastModeBetas,\n\t\t\t\tspeed: \"fast\",\n\t\t\t})\n\t\t}\n\n\t\tconst budget_tokens = this.options.thinkingBudgetTokens || 0\n\n\t\t// Tools are available only when native tools are enabled.\n\t\tconst nativeToolsOn = tools?.length && tools?.length > 0\n\t\tconst reasoningOn = (model.info.supportsReasoning ?? false) && budget_tokens !== 0\n\n\t\t// Claude Opus 4.5+ uses adaptive thinking instead of budgeted extended thinking.\n\t\tconst isAdaptiveThinkingModel = isClaudeOpusAdaptiveThinkingModel(modelId)\n\t\tconst adaptiveThinking = isAdaptiveThinkingModel\n\t\t\t? resolveClaudeOpusAdaptiveThinking(this.options.reasoningEffort, budget_tokens)\n\t\t\t: undefined\n\t\tconst adaptiveThinkingEnabled = adaptiveThinking?.enabled === true\n\t\tconst adaptiveThinkingEffort = adaptiveThinking?.effort\n\t\tconst thinkingEnabled = isAdaptiveThinkingModel ? adaptiveThinkingEnabled : reasoningOn\n\t\tconst thinkingConfig = thinkingEnabled\n\t\t\t? isAdaptiveThinkingModel\n\t\t\t\t? ({ type: \"adaptive\" } as any)\n\t\t\t\t: { type: \"enabled\", budget_tokens: budget_tokens }\n\t\t\t: undefined\n\t\tconst outputConfig = isAdaptiveThinkingModel && adaptiveThinkingEffort ? { effort: adaptiveThinkingEffort } : undefined\n\n\t\tif (model.info.supportsPromptCache) {\n\t\t\tconst anthropicMessages = sanitizeAnthropicMessages(messages, true)\n\t\t\tconst requestBody: AnthropicMessageCreateParamsStreaming & Record<string, unknown> = {\n\t\t\t\tmodel: modelId,\n\t\t\t\tthinking: thinkingConfig,\n\t\t\t\tmax_tokens: model.info.maxTokens || 8192,\n\t\t\t\t// \"Thinking isn't compatible with temperature, top_p, or top_k modifications as well as forced tool use.\"\n\t\t\t\t// (https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking#important-considerations-when-using-extended-thinking)\n\t\t\t\t// Adaptive Claude Opus models do not support temperature.\n\t\t\t\ttemperature: isAdaptiveThinkingModel ? undefined : reasoningOn ? undefined : 0,\n\t\t\t\tsystem: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttext: systemPrompt,\n\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\tcache_control: { type: \"ephemeral\" },\n\t\t\t\t\t},\n\t\t\t\t], // setting cache breakpoint for system prompt so new tasks can reuse it\n\t\t\t\tmessages: anthropicMessages,\n\t\t\t\t// tools, // cache breakpoints go from tools > system > messages, and since tools dont change, we can just set the breakpoint at the end of system (this avoids having to set a breakpoint at the end of tools which by itself does not meet min requirements for haiku caching)\n\t\t\t\tstream: true,\n\t\t\t\ttools: nativeToolsOn ? tools : undefined,\n\t\t\t\t// tool_choice options:\n\t\t\t\t// - none: disables tool use, even if tools are provided. Claude will not call any tools.\n\t\t\t\t// - auto: allows Claude to decide whether to call any provided tools or not. This is the default value when tools are provided.\n\t\t\t\t// - any: tells Claude that it must use one of the provided tools, but doesn’t force a particular tool.\n\t\t\t\t// NOTE: Forcing tool use when tools are provided will result in error when thinking is also enabled.\n\t\t\t\ttool_choice: nativeToolsOn && !thinkingEnabled ? { type: \"any\" } : undefined,\n\t\t\t}\n\t\t\tif (outputConfig) {\n\t\t\t\trequestBody.output_config = outputConfig\n\t\t\t}\n\n\t\t\tstream = useFastMode\n\t\t\t\t? await createFastModeMessage(requestBody)\n\t\t\t\t: await client.messages.create(\n\t\t\t\t\t\trequestBody,\n\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t// 1m context window beta header\n\t\t\t\t\t\t\tif (enable1mContextWindow) {\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\t\t\"anthropic-beta\": \"context-1m-2025-08-07\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn undefined\n\t\t\t\t\t\t})(),\n\t\t\t\t\t)\n\t\t} else {\n\t\t\tconst requestBody: AnthropicMessageCreateParamsStreaming & Record<string, unknown> = {\n\t\t\t\tmodel: modelId,\n\t\t\t\tmax_tokens: model.info.maxTokens || 8192,\n\t\t\t\ttemperature: isAdaptiveThinkingModel ? undefined : reasoningOn ? undefined : 0,\n\t\t\t\tsystem: [{ text: systemPrompt, type: \"text\" }],\n\t\t\t\tmessages: sanitizeAnthropicMessages(messages, false),\n\t\t\t\ttools: nativeToolsOn ? tools : undefined,\n\t\t\t\ttool_choice: thinkingEnabled ? undefined : { type: \"auto\" },\n\t\t\t\tstream: true,\n\t\t\t\tthinking: thinkingConfig,\n\t\t\t}\n\t\t\tif (outputConfig) {\n\t\t\t\trequestBody.output_config = outputConfig\n\t\t\t}\n\n\t\t\tstream = useFastMode ? await createFastModeMessage(requestBody) : await client.messages.create(requestBody)\n\t\t}\n\n\t\tconst lastStartedToolCall = { id: \"\", name: \"\", arguments: \"\" }\n\n\t\tfor await (const chunk of stream) {\n\t\t\tswitch (chunk?.type) {\n\t\t\t\tcase \"message_start\":\n\t\t\t\t\t{\n\t\t\t\t\t\t// tells us cache reads/writes/input/output\n\t\t\t\t\t\tconst usage = chunk.message.usage\n\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\ttype: \"usage\",\n\t\t\t\t\t\t\tinputTokens: usage.input_tokens || 0,\n\t\t\t\t\t\t\toutputTokens: usage.output_tokens || 0,\n\t\t\t\t\t\t\tcacheWriteTokens: usage.cache_creation_input_tokens || undefined,\n\t\t\t\t\t\t\tcacheReadTokens: usage.cache_read_input_tokens || undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tcase \"message_delta\":\n\t\t\t\t\t// tells us stop_reason, stop_sequence, and output tokens along the way and at the end of the message\n\n\t\t\t\t\tyield {\n\t\t\t\t\t\ttype: \"usage\",\n\t\t\t\t\t\tinputTokens: 0,\n\t\t\t\t\t\toutputTokens: chunk.usage.output_tokens || 0,\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tcase \"message_stop\":\n\t\t\t\t\t// no usage data, just an indicator that the message is done\n\t\t\t\t\tbreak\n\t\t\t\tcase \"content_block_start\":\n\t\t\t\t\tswitch (chunk.content_block.type) {\n\t\t\t\t\t\tcase \"thinking\":\n\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\ttype: \"reasoning\",\n\t\t\t\t\t\t\t\treasoning: chunk.content_block.thinking || \"\",\n\t\t\t\t\t\t\t\tsignature: chunk.content_block.signature,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"redacted_thinking\":\n\t\t\t\t\t\t\t// Content is encrypted, and we don't to pass placeholder text back to the API\n\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\ttype: \"reasoning\",\n\t\t\t\t\t\t\t\treasoning: \"[Redacted thinking block]\",\n\t\t\t\t\t\t\t\tredacted_data: chunk.content_block.data,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"tool_use\":\n\t\t\t\t\t\t\tif (chunk.content_block.id && chunk.content_block.name) {\n\t\t\t\t\t\t\t\t// Convert Anthropic tool_use to OpenAI-compatible format\n\t\t\t\t\t\t\t\tlastStartedToolCall.id = chunk.content_block.id\n\t\t\t\t\t\t\t\tlastStartedToolCall.name = chunk.content_block.name\n\t\t\t\t\t\t\t\tlastStartedToolCall.arguments = \"\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"text\":\n\t\t\t\t\t\t\t// we may receive multiple text blocks, in which case just insert a line break between them\n\t\t\t\t\t\t\tif (chunk.index > 0) {\n\t\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\t\t\t\ttext: \"\\n\",\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\t\t\ttext: chunk.content_block.text,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\tcase \"content_block_delta\":\n\t\t\t\t\tswitch (chunk.delta.type) {\n\t\t\t\t\t\tcase \"thinking_delta\":\n\t\t\t\t\t\t\t// 'reasoning' type just displays in the UI, but ant_thinking will be used to send the thinking traces back to the API\n\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\ttype: \"reasoning\",\n\t\t\t\t\t\t\t\treasoning: chunk.delta.thinking,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"signature_delta\":\n\t\t\t\t\t\t\t// It's used when sending the thinking block back to the API\n\t\t\t\t\t\t\t// API expects this in completed form, not as array of deltas\n\t\t\t\t\t\t\tif (chunk.delta.signature) {\n\t\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\t\ttype: \"reasoning\",\n\t\t\t\t\t\t\t\t\treasoning: \"\", // reasoning text is already sent via thinking_delta\n\t\t\t\t\t\t\t\t\tsignature: chunk.delta.signature,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"text_delta\":\n\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\ttype: \"text\",\n\t\t\t\t\t\t\t\ttext: chunk.delta.text,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\tcase \"input_json_delta\":\n\t\t\t\t\t\t\tif (lastStartedToolCall.id && lastStartedToolCall.name && chunk.delta.partial_json) {\n\t\t\t\t\t\t\t\t// \t// Convert Anthropic tool_use to OpenAI-compatible format\n\t\t\t\t\t\t\t\tyield {\n\t\t\t\t\t\t\t\t\ttype: \"tool_calls\",\n\t\t\t\t\t\t\t\t\ttool_call: {\n\t\t\t\t\t\t\t\t\t\t...lastStartedToolCall,\n\t\t\t\t\t\t\t\t\t\tfunction: {\n\t\t\t\t\t\t\t\t\t\t\t...lastStartedToolCall,\n\t\t\t\t\t\t\t\t\t\t\tid: lastStartedToolCall.id,\n\t\t\t\t\t\t\t\t\t\t\tname: lastStartedToolCall.name,\n\t\t\t\t\t\t\t\t\t\t\targuments: chunk.delta.partial_json,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\n\t\t\t\tcase \"content_block_stop\":\n\t\t\t\t\tlastStartedToolCall.id = \"\"\n\t\t\t\t\tlastStartedToolCall.name = \"\"\n\t\t\t\t\tlastStartedToolCall.arguments = \"\"\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Project function reference, @anthropic-ai/sdk",
      "display": "anthropic.ts · createMessage()",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project repository, @anthropic-ai/sdk",
      "display": "cline/cline",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project stars, cline/cline",
      "display": "71.7K",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project push date, cline/cline",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Library name, openai",
      "display": "OpenAI",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Monthly downloads, openai",
      "display": "223.6M",
      "asOf": "2026-11-16"
    },
    "F27": {
      "label": "License, openai",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Package release, openai",
      "display": "7.23.0",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Undated package release, openai",
      "display": "v7.23.0",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Repository stars, openai",
      "display": "11.3K",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Streaming responses, openai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Tool calling, openai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Schema responses, openai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Token counting, openai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Install, openai",
      "display": "npm install openai",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "What it does, openai",
      "display": "Provides TypeScript and JavaScript access to the OpenAI REST API.",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "strengths lead, openai",
      "display": "Parses schema-shaped response data",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths, openai",
      "display": "Use JSON Schema or Zod to define the expected response shape.",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths lead, openai",
      "display": "Counts inputs before generation",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths, openai",
      "display": "Use the input-token endpoint before sending a generation request.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "limitations lead, openai",
      "display": "Response history needs complete output",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations, openai",
      "display": "Preserve reasoning and tool-call items, in order, between requests.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations lead, openai",
      "display": "Refusals can bypass schema output",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations, openai",
      "display": "Handle refusals and incomplete responses before using structured fields.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Quickstart, openai",
      "display": "import OpenAI from 'openai';\n\nconst client = new OpenAI({\n  apiKey: process.env['OPENAI_API_KEY'], // This is the default and can be omitted\n});\n\nconst response = await client.responses.create({\n  model: 'gpt-5.5',\n  instructions: 'You are a coding assistant that talks like a pirate',\n  input: 'Are semicolons optional in JavaScript?',\n});\n\nconsole.log(response.output_text);\n",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Project function, openai",
      "display": "private async *createResponseStreamHttp(\n\t\tmodelInfo: ModelInfo,\n\t\tparams: OpenAI.Responses.ResponseCreateParamsStreaming,\n\t): ApiStream {\n\t\tconst client = this.ensureClient()\n\t\tLogger.debug(`OpenAI Responses Input (HTTP): ${JSON.stringify(params.input)}`)\n\t\tconst stream = await client.responses.create(params, { signal: this.abortController?.signal })\n\t\tyield* this.processResponsesEvents(stream, modelInfo)\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function reference, openai",
      "display": "openai-native.ts · createResponseStreamHttp()",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project repository, openai",
      "display": "cline/cline",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project stars, cline/cline",
      "display": "71.7K",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project push date, cline/cline",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Library name, @google/genai",
      "display": "GoogleGenAI",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Monthly downloads, @google/genai",
      "display": "120.4M",
      "asOf": "2026-11-16"
    },
    "F53": {
      "label": "License, @google/genai",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Package release, @google/genai",
      "display": "3.4.0",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Undated package release, @google/genai",
      "display": "v3.4.0",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Repository stars, @google/genai",
      "display": "1.7K",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Streaming responses, @google/genai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Tool calling, @google/genai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Schema responses, @google/genai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Token counting, @google/genai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, @google/genai",
      "display": "npm install @google/genai",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, @google/genai",
      "display": "Uses one GoogleGenAI client interface for both supported Gemini services.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, @google/genai",
      "display": "Supports API-key and cloud authentication",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, @google/genai",
      "display": "Choose an API key or configure a cloud project and region.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, @google/genai",
      "display": "Streams content as chunks",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, @google/genai",
      "display": "Consume generateContentStream with asynchronous iteration.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, @google/genai",
      "display": "Available APIs depend on backend",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, @google/genai",
      "display": "File APIs and image generation use different Google backends.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, @google/genai",
      "display": "Schema mode supports a subset",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, @google/genai",
      "display": "Keep response schemas within Gemini’s supported JSON Schema subset.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "limitations lead, @google/genai",
      "display": "Custom functions need application execution",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "limitations, @google/genai",
      "display": "Execute requested functions and return results to the model.",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Quickstart, @google/genai",
      "display": "import {GoogleGenAI} from '@google/genai';\nconst GEMINI_API_KEY = process.env.GEMINI_API_KEY;\n\nconst ai = new GoogleGenAI({apiKey: GEMINI_API_KEY});\n\nasync function main() {\n  const response = await ai.models.generateContent({\n    model: 'gemini-3.8-flash',\n    contents: 'Why is the sky blue?',\n  });\n  console.log(response.text);\n}\n\nmain();\n",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project function, @google/genai",
      "display": "private ensureClient(): GoogleGenAI {\n\t\tif (!this.client) {\n\t\t\tconst options = this.options as GeminiHandlerOptions\n\t\t\tconst externalHeaders = buildExternalBasicHeaders()\n\n\t\t\tif (options.isVertex) {\n\t\t\t\t// Initialize with Vertex AI configuration\n\t\t\t\tconst project = this.options.vertexProjectId ?? \"not-provided\"\n\t\t\t\tconst location = this.options.vertexRegion ?? \"not-provided\"\n\n\t\t\t\ttry {\n\t\t\t\t\tthis.client = new GoogleGenAI({\n\t\t\t\t\t\tvertexai: true,\n\t\t\t\t\t\tproject,\n\t\t\t\t\t\tlocation,\n\t\t\t\t\t\thttpOptions: {\n\t\t\t\t\t\t\theaders: externalHeaders,\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t} catch (error) {\n\t\t\t\t\tthrow new Error(`Error creating Gemini Vertex AI client: ${error.message}`)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Initialize with standard API key\n\t\t\t\tif (!options.geminiApiKey) {\n\t\t\t\t\tthrow new Error(\"API key is required for Google Gemini when not using Vertex AI\")\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tthis.client = new GoogleGenAI({\n\t\t\t\t\t\tapiKey: options.geminiApiKey,\n\t\t\t\t\t\thttpOptions: {\n\t\t\t\t\t\t\theaders: externalHeaders,\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t} catch (error) {\n\t\t\t\t\tthrow new Error(`Error creating Gemini client: ${error.message}`)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn this.client\n\t}\n",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project function reference, @google/genai",
      "display": "gemini.ts · ensureClient()",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project repository, @google/genai",
      "display": "cline/cline",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Project stars, cline/cline",
      "display": "71.7K",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Project push date, cline/cline",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Library name, ollama",
      "display": "Ollama",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Monthly downloads, ollama",
      "display": "4.6M",
      "asOf": "2026-11-16"
    },
    "F81": {
      "label": "License, ollama",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "Package release, ollama",
      "display": "0.6.4",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Undated package release, ollama",
      "display": "v0.6.4",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Repository stars, ollama",
      "display": "4.4K",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Streaming responses, ollama",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Tool calling, ollama",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Schema responses, ollama",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "Install, ollama",
      "display": "npm install ollama",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "What it does, ollama",
      "display": "Connects JavaScript applications to an Ollama model service.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, ollama",
      "display": "Streams through async iteration",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, ollama",
      "display": "Consume message chunks as the model produces them.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths lead, ollama",
      "display": "Offers a browser import",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "strengths, ollama",
      "display": "Import ollama/browser when using a browser runtime.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, ollama",
      "display": "Local inference needs Ollama running",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, ollama",
      "display": "Run the local model server with the requested weights available.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, ollama",
      "display": "Cloud models exclude structured outputs",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, ollama",
      "display": "Select a compatible local model when a response schema is required.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations lead, ollama",
      "display": "Abort stops every client stream",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations, ollama",
      "display": "Use separate clients for independently cancellable streams.",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Quickstart, ollama",
      "display": "import ollama from 'ollama'\n\nconst response = await ollama.chat({\n  model: 'llama3.1',\n  messages: [{ role: 'user', content: 'Why is the sky blue?' }],\n})\nconsole.log(response.message.content)\n",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project function, ollama",
      "display": "async *_streamResponseChunks(\n    messages: BaseMessage[],\n    options: this[\"ParsedCallOptions\"],\n    runManager?: CallbackManagerForLLMRun\n  ): AsyncGenerator<ChatGenerationChunk> {\n    await this.ensureModelAvailable();\n\n    const params = this.invocationParams(options);\n    // TODO: remove cast after SDK adds support for tool calls\n    const ollamaMessages = convertToOllamaMessages(messages) as OllamaMessage[];\n\n    const usageMetadata: UsageMetadata = {\n      input_tokens: 0,\n      output_tokens: 0,\n      total_tokens: 0,\n    };\n\n    const stream = await this.client.chat({\n      ...params,\n      messages: ollamaMessages,\n      stream: true,\n    });\n\n    let lastMetadata: Omit<OllamaChatResponse, \"message\"> | undefined;\n\n    for await (const streamChunk of stream) {\n      if (options.signal?.aborted) {\n        this.client.abort();\n        return;\n      }\n      const { message: responseMessage, ...rest } = streamChunk;\n      usageMetadata.input_tokens += rest.prompt_eval_count ?? 0;\n      usageMetadata.output_tokens += rest.eval_count ?? 0;\n      usageMetadata.total_tokens =\n        usageMetadata.input_tokens + usageMetadata.output_tokens;\n      lastMetadata = rest;\n\n      // when think is enabled, try thinking first\n      const token = this.think\n        ? (responseMessage.thinking ?? responseMessage.content ?? \"\")\n        : (responseMessage.content ?? \"\");\n\n      const chunk = new ChatGenerationChunk({\n        text: token,\n        message: convertOllamaMessagesToLangChain(responseMessage),\n      });\n      yield chunk;\n      await runManager?.handleLLMNewToken(\n        token,\n        undefined,\n        undefined,\n        undefined,\n        undefined,\n        { chunk }\n      );\n    }\n\n    // Yield the `response_metadata` as the final chunk.\n    yield new ChatGenerationChunk({\n      text: \"\",\n      message: new AIMessageChunk({\n        content: \"\",\n        response_metadata: {\n          ...lastMetadata,\n          model_provider: \"ollama\",\n        },\n        usage_metadata: usageMetadata,\n      }),\n    });\n  }\n",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project function reference, ollama",
      "display": "chat_models.ts · _streamResponseChunks()",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project repository, ollama",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project stars, langchain-ai/langchainjs",
      "display": "18.4K",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Project push date, langchain-ai/langchainjs",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need",
      "display": "Parsing structured OpenAI model responses",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Why choose openai",
      "display": "native schema response handling",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need in introduction",
      "display": "parsing structured OpenAI model responses",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need",
      "display": "Running registered functions through a tool helper",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Why choose @anthropic-ai/sdk",
      "display": "runnable tool helpers",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need in introduction",
      "display": "running registered functions through a tool helper",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "When to consider openai",
      "display": "the selected service is OpenAI with schema responses",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need",
      "display": "Choosing API-key or cloud-project authentication",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Why choose @google/genai",
      "display": "supported Google authentication paths",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Developer need in introduction",
      "display": "choosing API-key or cloud-project authentication",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "When to consider ollama",
      "display": "a separate Ollama model host is the target",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "Developer need",
      "display": "Streaming from an Ollama model host",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Why choose ollama",
      "display": "native async chat streams",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "Developer need in introduction",
      "display": "streaming from an Ollama model host",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "When to consider @google/genai",
      "display": "the target service needs Google project authentication",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "Page introduction",
      "display": "JavaScript LLM libraries let application developers connect language-model calls and tools to applications.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Must OpenAI conversation history include more than text messages?",
      "display": "Manual Responses API history must preserve reasoning and tool-call output items in order.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Does a structured OpenAI response remove the need for application checks?",
      "display": "Handle refusals, incomplete responses, and business rules that the schema does not express.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Can OpenAI count request inputs before generation?",
      "display": "The input-token API counts a request before it is sent to the model.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can Anthropic execute registered tool functions?",
      "display": "Runnable tool helpers can be automatically invoked by toolRunner.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does interrupting an Anthropic reply cancel tools already running?",
      "display": "A started tool can finish after the reply is cut short; defer calls that must not run twice.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Which schema libraries can Anthropic structured helpers use?",
      "display": "The helpers support JSON Schema, Zod, and Standard Schema implementations.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does the Google SDK use separate clients for its two Gemini services?",
      "display": "Both supported services expose the same GoogleGenAI client interface.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Is the older Google vertexai option still recognized?",
      "display": "The older vertexai option still selects the cloud-backed Gemini service.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Can every JSON Schema keyword be used with Gemini?",
      "display": "Gemini structured output supports a subset of JSON Schema.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Who executes a custom Google function declaration?",
      "display": "Application code executes the requested function and returns its result to the model.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does the Ollama npm client run a model by itself?",
      "display": "Local inference uses an Ollama model server and a downloaded model; cloud access is a separate path.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Can Ollama cloud requests currently enforce a response schema?",
      "display": "Ollama cloud currently excludes structured outputs.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does Ollama abort cancel only the latest streamed request?",
      "display": "abort stops every active streamed generation on that client; separate clients isolate cancellation.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Library name, @anthropic-ai/sdk",
      "display": "Anthropic",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Monthly downloads, @anthropic-ai/sdk",
      "display": "261.6M",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "License, @anthropic-ai/sdk",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release, @anthropic-ai/sdk",
      "display": "1.10.0",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Package release date, @anthropic-ai/sdk",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Install, @anthropic-ai/sdk",
      "display": "npm install @anthropic-ai/sdk",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart, @anthropic-ai/sdk",
      "display": "import Anthropic from \"@anthropic-ai/sdk\";\n\nconst client = new Anthropic();\nconst message = await client.messages.create({\n  model: \"claude-opus-5-5\", max_tokens: 128,\n  messages: [{ role: \"user\", content: \"Say hello.\" }],\n});\nconsole.log(message.content);\n",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Repository stars, @anthropic-ai/sdk",
      "display": "2.2K",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Bundled local model runtime, @anthropic-ai/sdk",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "SDK-managed tool loop, @anthropic-ai/sdk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Native inference role, @anthropic-ai/sdk",
      "display": "Direct Claude Messages/streaming/tool-runner client.",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Exact external generation contract, @anthropic-ai/sdk",
      "display": "Actual function constructs Anthropic({apiKey:auth.secret_text}). Native request fields model,max_tokens,system,messages,optional temperature,thinking.type adaptive,and output_config.effort low are in current1.10 API. Exact pinned common helper proves lowEffortConfig returns only output_config:{effort:\"low\"},THINKING_MODEL is currentSonnet5.5,and model selection resolves/filters retired IDs. Valid user/assistant roles and supported JPEG/PNG/GIF/WebP base64 media types are caller requirements; arbitrary MIME extensions are not asserted accepted. Native Message.content is a typed content-block array; original extractReplyText concatenates text blocks,throws if empty,and includes stop_reason in the host error. Returns optional text after original host branch/error handling. Rate-limit branch waits then breaks; it is not described as a functioning four-attempt retry loop.",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Runtime,account,and model prerequisites, @anthropic-ai/sdk",
      "display": "Supported Node/ESM runtime,ANTHROPIC_API_KEY,and account/model access. Raw content blocks may include more than text; no API request ran.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Tool execution boundary, @anthropic-ai/sdk",
      "display": "Optional beta toolRunner invokes supplied tools and returns their results to Claude. Explicit helper opt-in required; ordinary messages.create alone does not execute tools.",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Library name, openai",
      "display": "OpenAI",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Monthly downloads, openai",
      "display": "223.6M",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "License, openai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Package release, openai",
      "display": "7.60.0",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Package release date, openai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Install, openai",
      "display": "npm install openai",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Quickstart, openai",
      "display": "import OpenAI from \"openai\";\n\nconst client = new OpenAI();\nconst response = await client.responses.create({\n  model: \"gpt-5.5\", input: \"Say hello.\",\n});\nconsole.log(response.output_text);\n",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Repository stars, openai",
      "display": "11.3K",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Bundled local model runtime, openai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "SDK-managed tool loop, openai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Native inference role, openai",
      "display": "Direct OpenAI Responses,chat,and other API client,with Azure/custom endpoint configuration distinct from API protocol.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Exact external generation contract, openai",
      "display": "Original ensureClient in same module returns a directly imported OpenAI instance. Current7.60 responses.create accepts ResponseCreateParamsStreaming and request options.signal AbortSignal. params must have stream:true and valid current model/input. No assumptions about retired default models elsewhere in the historical host. Returns a Stream of current Responses events to the existing host processResponsesEvents generator; this function does not return one completed output_text string. AbortController may be absent. Other processing/logging and modelInfo are Cline dependencies,not extra SDK calls.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Runtime,account,and model prerequisites, openai",
      "display": "Supported Node/ESM runtime,OPENAI_API_KEY,authorized model,and network access. Server-side example,not exposing a secret in browser code.",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Tool execution boundary, openai",
      "display": "Provider function-call protocol is documented. Whether a current selected SDK-owned automatic tool runner is available remains unverified in retained own sources; do not turn manual protocol examples into package-wide No.",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Project function, openai",
      "display": "private async *createResponseStreamHttp(\n\t\tmodelInfo: ModelInfo,\n\t\tparams: OpenAI.Responses.ResponseCreateParamsStreaming,\n\t): ApiStream {\n\t\tconst client = this.ensureClient()\n\t\tLogger.debug(`OpenAI Responses Input (HTTP): ${JSON.stringify(params.input)}`)\n\t\tconst stream = await client.responses.create(params, { signal: this.abortController?.signal })\n\t\tyield* this.processResponsesEvents(stream, modelInfo)\n\t}\n",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Project source file, openai",
      "display": "src/core/api/providers/openai-native.ts",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Project full_name, openai",
      "display": "cline/cline",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Project stargazers_count, openai",
      "display": "71.7K",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Library name, ai",
      "display": "AI SDK",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Monthly downloads, ai",
      "display": "172.3M",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "License, ai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Package release, ai",
      "display": "7.0.177",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Package release date, ai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Install, ai",
      "display": "npm install ai @ai-sdk/openai",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Quickstart, ai",
      "display": "import { generateText } from \"ai\";\nimport { openai } from \"@ai-sdk/openai\";\n\nconst { text } = await generateText({\n  model: openai(\"gpt-5.5\"), prompt: \"Say hello.\",\n});\nconsole.log(text);\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Official description, ai",
      "display": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Quickstart source file, ai",
      "display": "content/providers/ai-sdk-providers/openai.mdx",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Repository stars, ai",
      "display": "28.1K",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Bundled local model runtime, ai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "SDK-managed tool loop, ai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Native inference role, ai",
      "display": "Provider-neutral text-generation/streaming core with companion provider adapters and optional gateway.",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Exact external generation contract, ai",
      "display": "Original generateTitleFromUserMessage uses current7 instructions,model,prompt,and providerOptions.gateway.order. Captured original providers.ts proves getTitleModel returns gateway.languageModel(titleModel.id),or a test-only customProvider model; scope is actual non-test gateway branch. Original titleModel.id/gatewayOrder,titlePrompt,getTextFromMessage,and gateway authorization must be configured. Prompt is truncated by unchanged host constant,not SDK limit. generateText returns text. Host strips leading formatting/quotes and trims the title; no schema validation or success guarantee implied. Gateway provider options are distinct from direct OpenAI provider adapter configuration.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Runtime,account,and model prerequisites, ai",
      "display": "Supported Node/ESM runtime,OPENAI_API_KEY,and compatible current AI SDK/provider packages. Provider adapter is a separate companion package,not pooled downloads. This recipe selects direct OpenAI rather than requiring gateway auth.",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Tool execution boundary, ai",
      "display": "Core tool execute functions participate in native generation/stream steps; stopping/step controls and provider support still apply. Not a server-side code-execution service claim.",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Library name, @google/genai",
      "display": "Google Gen AI",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Monthly downloads, @google/genai",
      "display": "120.4M",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "License, @google/genai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Package release, @google/genai",
      "display": "3.6.1",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Package release date, @google/genai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Install, @google/genai",
      "display": "npm install @google/genai",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Quickstart, @google/genai",
      "display": "import { GoogleGenAI } from \"@google/genai\";\n\nconst ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });\nconst response = await ai.models.generateContent({\n  model: \"gemini-3.8-flash\", contents: \"Say hello.\",\n});\nconsole.log(response.text);\n",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Repository stars, @google/genai",
      "display": "1.7K",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Bundled local model runtime, @google/genai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "SDK-managed tool loop, @google/genai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Native inference role, @google/genai",
      "display": "Gemini/Vertex Gen AI client with model generation,multimodal contents,and optional automatic MCP bridge.",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Exact external generation contract, @google/genai",
      "display": "Actual full module imports GoogleGenAI and initializes #client. Native generateContent receives options.model,converted conversation contents,and buildConfig(options). Full original buildConfig is retained and current GenerateContentConfig covers systemInstruction,temperature,maxOutputTokens,topP,topK,stopSequences,tools,toolConfig,thinkingConfig,andresponse MIME/schema controls as used. Exact part/function-call and usage handling remain in the unchanged converter. Valid current model and authenticated runtime required. Returns GenerateContentResponse,converted by original fromGeminiResponse to host LLMResponse from candidates[].content.parts,finishReason,and usageMetadata. Native text/functionCall/thought fields are model-dependent; empty or blocked candidates remain host-handled cases,not a guaranteed text result.",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Runtime,account,and model prerequisites, @google/genai",
      "display": "Supported Node/ESM runtime,GEMINI_API_KEY,and model access for Gemini Developer API. Vertex project/location/auth is a separate setup path.",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Tool execution boundary, @google/genai",
      "display": "Native mcpToTool bridge automatically invokes a configured MCP client during generateContent; MCP runtime/server and explicit tool wiring required. Plain function declarations alone are not automatically executed JavaScript.",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Project function, @google/genai",
      "display": "async chat(messages: LLMMessage[], options: LLMChatOptions): Promise<LLMResponse> {\n    assertValidMessages(messages)\n    const id = generateId()\n    const contents = toGeminiContents(messages, options)\n\n    const response = await this.#client.models.generateContent({\n      model: options.model,\n      contents,\n      config: buildConfig(options),\n    })\n\n    return fromGeminiResponse(response, id, options.model)\n  }\n",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Project source file, @google/genai",
      "display": "packages/core/src/llm/gemini.ts",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Project full_name, @google/genai",
      "display": "open-multi-agent/open-multi-agent",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Project stargazers_count, @google/genai",
      "display": "7.1K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Library name, @aws-sdk/client-bedrock-runtime",
      "display": "@aws-sdk/client-bedrock-runtime",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Monthly downloads, @aws-sdk/client-bedrock-runtime",
      "display": "85.5M",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "License, @aws-sdk/client-bedrock-runtime",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Package release, @aws-sdk/client-bedrock-runtime",
      "display": "3.1172.0",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Package release date, @aws-sdk/client-bedrock-runtime",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Install, @aws-sdk/client-bedrock-runtime",
      "display": "npm install @aws-sdk/client-bedrock-runtime",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Quickstart, @aws-sdk/client-bedrock-runtime",
      "display": "import { BedrockRuntimeClient, ConverseCommand } from \"@aws-sdk/client-bedrock-runtime\";\n\nconst client = new BedrockRuntimeClient({ region: \"us-east-1\" });\nconst response = await client.send(new ConverseCommand({\n  modelId: \"amazon.nova-lite-v1:0\",\n  messages: [{ role: \"user\", content: [{ text: \"Say hello.\" }] }],\n}));\nconsole.log(response.output?.message?.content);\n",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Official description, @aws-sdk/client-bedrock-runtime",
      "display": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Quickstart source file, @aws-sdk/client-bedrock-runtime",
      "display": "javascriptv3/example_code/bedrock-runtime/models/amazonNovaText/converse.js",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Repository stars, @aws-sdk/client-bedrock-runtime",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Bundled local model runtime, @aws-sdk/client-bedrock-runtime",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "SDK-managed tool loop, @aws-sdk/client-bedrock-runtime",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Native inference role, @aws-sdk/client-bedrock-runtime",
      "display": "AWS credentialed Bedrock Converse/InvokeModel inference client for supported model providers.",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Exact external generation contract, @aws-sdk/client-bedrock-runtime",
      "display": "Full actual LangChain class imports BedrockRuntimeClient,ConverseCommand,and binds this.client to that client. Current3.1172 command accepts modelId,messages,optional system,requestMetadata,inferenceConfig,toolConfig,guardrailConfig,additionalModelRequestFields,response-field paths,and compatible optional performance/output fields forwarded by original invocationParams. Formal current Converse request schema retained; InvokeModel and streaming schemas are not substituted. Smithy send request options.abortSignal is native client cancellation,not an SDK payload field. Current Converse response contains output.message,usage,metrics,and stopReason; host extracts output.message,passes other metadata to its original converter,and returns LangChain ChatResult. Missing output throws. This one nonstreaming request can return a tool-use message; it does not execute application tools by itself.",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Runtime,account,and model prerequisites, @aws-sdk/client-bedrock-runtime",
      "display": "Supported Node/ESM runtime,AWS credential-provider-chain configuration,bedrock:InvokeModel permissions,and model/region access. No account or credentials were configured.",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Tool execution boundary, @aws-sdk/client-bedrock-runtime",
      "display": "Converse JSON tool configuration/stopReason are documented,but a package-owned automatic JavaScript tool-execution loop is not established. The chosen external adapter performs one request.",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Project function, @aws-sdk/client-bedrock-runtime",
      "display": "async _generateNonStreaming(\n    messages: BaseMessage[],\n    options: Partial<this[\"ParsedCallOptions\"]>,\n    _runManager?: CallbackManagerForLLMRun\n  ): Promise<ChatResult> {\n    try {\n      const { converseMessages, converseSystem } =\n        convertToConverseMessages(messages);\n      const params = this.invocationParams(options);\n      applyCachePointsToConversePayload({\n        cacheControl: options.cache_control,\n        system: converseSystem,\n        messages: converseMessages,\n        params,\n        modelId: this.applicationInferenceProfile ?? this.model,\n      });\n\n      const command = new ConverseCommand({\n        modelId: this.applicationInferenceProfile ?? this.model,\n        messages: converseMessages,\n        ...(Array.isArray(converseSystem) && converseSystem.length > 0\n          ? { system: converseSystem }\n          : {}),\n        requestMetadata: options.requestMetadata,\n        ...params,\n      });\n      const response = await this.caller.callWithOptions(\n        { signal: options.signal, maxRetries: options.maxRetries },\n        async () => {\n          try {\n            return await this.client.send(command, {\n              abortSignal: options.signal,\n            });\n          } catch (error) {\n            throw normalizeBedrockError(error);\n          }\n        }\n      );\n      const { output, ...responseMetadata } = response;\n      if (!output?.message) {\n        throw new Error(\"No message found in Bedrock response.\");\n      }\n\n      const message = convertConverseMessageToLangChainMessage(\n        output.message,\n        responseMetadata\n      );\n      return {\n        generations: [\n          {\n            text: typeof message.content === \"string\" ? message.content : \"\",\n            message,\n          },\n        ],\n      };\n    } catch (error) {\n      throw normalizeBedrockError(error);\n    }\n  }\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Project source file, @aws-sdk/client-bedrock-runtime",
      "display": "libs/providers/langchain-aws/src/chat_models.ts",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Project full_name, @aws-sdk/client-bedrock-runtime",
      "display": "langchain-ai/langchainjs",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Project stargazers_count, @aws-sdk/client-bedrock-runtime",
      "display": "18.4K",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Library name, @mistralai/mistralai",
      "display": "Mistral",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Monthly downloads, @mistralai/mistralai",
      "display": "27.0M",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "License, @mistralai/mistralai",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Package release, @mistralai/mistralai",
      "display": "3.5.0",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Package release date, @mistralai/mistralai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Install, @mistralai/mistralai",
      "display": "npm install @mistralai/mistralai",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Quickstart, @mistralai/mistralai",
      "display": "import { Mistral } from \"@mistralai/mistralai\";\n\nconst client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });\nconst response = await client.chat.complete({\n  model: \"mistral-large-latest\",\n  messages: [{ role: \"user\", content: \"Say hello.\" }],\n});\nconsole.log(response.choices?.[0]?.message.content);\n",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Official description, @mistralai/mistralai",
      "display": "TypeScript client library for the Mistral AI API",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Quickstart source file, @mistralai/mistralai",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Repository stars, @mistralai/mistralai",
      "display": "161",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Bundled local model runtime, @mistralai/mistralai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "SDK-managed tool loop, @mistralai/mistralai",
      "display": "Undocumented",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Native inference role, @mistralai/mistralai",
      "display": "Direct Mistral chat,agent,and other platform API client.",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Exact external generation contract, @mistralai/mistralai",
      "display": "Full original ensureClient dynamically imports literal @mistralai/mistralai and constructs sdk.Mistral({apiKey}). generateChat sends current camelCaseSDK model/messages fields with roles system/user/assistant and string content. It deliberately avoids sibling generateResponse response_format spelling,which is not the documented camelCase responseFormat. Supply a current valid model through original config.model: historical constructor fallback mistral-tiny-latest is not certified available. Current chat completion contains choices[].message with content and role. Original contentToString handles string or content chunks and normalizes to host LLMResponse. Empty choices return empty assistant text. No tool execution,structured-schema guarantee,or entire historical default-model stack is implied.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Runtime,account,and model prerequisites, @mistralai/mistralai",
      "display": "Supported Node/ESM runtime,MISTRAL_API_KEY,and current authorized model. CamelCase SDK options differ from raw REST snake_case request keys.",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Tool execution boundary, @mistralai/mistralai",
      "display": "Native model/agent/tool APIs are documented,but a current client-side JavaScript function-execution loop has not been established. Hosted agent tools are a distinct role.",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Project function, @mistralai/mistralai",
      "display": "async generateChat(messages: Message[]): Promise<LLMResponse> {\n    await this.ensureClient();\n    const formattedMessages = messages.map((msg) => ({\n      role: msg.role as \"system\" | \"user\" | \"assistant\",\n      content:\n        typeof msg.content === \"string\"\n          ? msg.content\n          : JSON.stringify(msg.content),\n    }));\n\n    const response = await this.client.chat.complete({\n      model: this.model,\n      messages: formattedMessages,\n    });\n\n    if (!response || !response.choices || response.choices.length === 0) {\n      return {\n        content: \"\",\n        role: \"assistant\",\n      };\n    }\n\n    const message = response.choices[0].message;\n\n    return {\n      content: this.contentToString(message.content),\n      role: message.role || \"assistant\",\n    };\n  }\n",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Project source file, @mistralai/mistralai",
      "display": "mem0-ts/src/oss/src/llms/mistral.ts",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project full_name, @mistralai/mistralai",
      "display": "mem0ai/mem0",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project stargazers_count, @mistralai/mistralai",
      "display": "69.2K",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Library name, @langchain/openai",
      "display": "@langchain/openai",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Monthly downloads, @langchain/openai",
      "display": "19.9M",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "License, @langchain/openai",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Package release, @langchain/openai",
      "display": "1.8.4",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "Package release date, @langchain/openai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Install, @langchain/openai",
      "display": "npm install @langchain/openai @langchain/core",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Quickstart, @langchain/openai",
      "display": "import { ChatOpenAI } from \"@langchain/openai\";\n\nconst model = new ChatOpenAI({ model: \"gpt-5.4-mini\" });\nconsole.log((await model.invoke(\"Say hello.\")).content);\n",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Official description, @langchain/openai",
      "display": "OpenAI integrations for LangChain.js",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart source file, @langchain/openai",
      "display": "docs/oss/javascript/integrations/chat/openai.mdx",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Repository stars, @langchain/openai",
      "display": "18.4K",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Bundled local model runtime, @langchain/openai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "SDK-managed tool loop, @langchain/openai",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Native inference role, @langchain/openai",
      "display": "Concrete LangChain ChatOpenAI/OpenAI integration returning normalized model messages,rather than the whole agent runtime.",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Exact external generation contract, @langchain/openai",
      "display": "Original makeChatOpenAI helper directly returns new ChatOpenAI with supplied model options and forwarded headers. Current1.8.4 public invoke accepts message arrays plus RunnableConfig; useResponsesApi,reasoning.effort/summary,and disableStreaming options are documented. SystemMessage is a peer @langchain/core type,not a second selected-package call. Supply a current authorized model through original OPENAI_REASONING_MODEL; original fallback model availability is not independently certified. Returns AIMessage inserted into host agent messages. Responses reasoning summary blocks and answer content are distinct/model-dependent; this function intentionally disables token streaming and does not itself execute tools. Existing state/config,system prompt,and factory/header prerequisites retained.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Runtime,account,and model prerequisites, @langchain/openai",
      "display": "Supported Node/ESM runtime,compatible @langchain/core peer,OPENAI_API_KEY,and model access. Chat model returns AIMessage; full LangChain agent runtime is separate.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Tool execution boundary, @langchain/openai",
      "display": "Compared ChatOpenAI.bindTools/invoke surface returns AIMessage tool_calls; separate application/agent orchestration executes them. This is not a claim that full LangChain agents or external server-hosted OpenAI tools cannot execute actions.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project function, @langchain/openai",
      "display": "async function chatNode(state: AgentState, config: RunnableConfig) {\n  const model = makeChatOpenAI(config, {\n    model: REASONING_MODEL,\n    useResponsesApi: true,\n    reasoning: { effort: \"low\", summary: \"auto\" },\n    // Token-level streaming of the OpenAI Responses API is buggy in\n    // @langchain/openai@1.4.4: the reasoning-summary delta (index =\n    // summary_index = 0) and the answer output_text delta (index =\n    // content_index = 0) are pushed to the SAME content-block index, so the\n    // streaming reducer collapses them into a single `type: \"reasoning\"`\n    // block whose `text` field silently swallows the answer. @ag-ui/langgraph\n    // then reads `content[0].type === \"reasoning\"` for every chunk and routes\n    // the whole turn (answer included) to REASONING_MESSAGE_* events — no\n    // assistant TEXT_MESSAGE ever renders, so the D6 reasoning-display probe\n    // reds with `text-unstable`. The NON-streaming Responses converter\n    // (`convertResponsesMessageToAIMessage`) processes final output *items*\n    // (not indexed deltas) and correctly yields TWO separate blocks — a\n    // `reasoning` block and a `text` block. Disabling token streaming forces\n    // that correct path; the bridge then emits both a reasoning message and\n    // the assistant answer, matching langgraph-python's rendering.\n    disableStreaming: true,\n  });\n\n  const response = await model.invoke(\n    [new SystemMessage({ content: SYSTEM_PROMPT }), ...state.messages],\n    config,\n  );\n\n  return { messages: response };\n}\n",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project source file, @langchain/openai",
      "display": "showcase/integrations/langgraph-typescript/src/agent/reasoning-agent.ts",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project full_name, @langchain/openai",
      "display": "CopilotKit/CopilotKit",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project stargazers_count, @langchain/openai",
      "display": "38.8K",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Library name, @huggingface/transformers",
      "display": "Transformers.js",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Monthly downloads, @huggingface/transformers",
      "display": "19.1M",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "License, @huggingface/transformers",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release, @huggingface/transformers",
      "display": "4.3.2",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Package release date, @huggingface/transformers",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Install, @huggingface/transformers",
      "display": "npm install @huggingface/transformers",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Quickstart, @huggingface/transformers",
      "display": "import { pipeline } from \"@huggingface/transformers\";\n\nconst generator = await pipeline(\"text-generation\", \"onnx-community/SmolLM2-135M-ONNX\");\nconsole.log(await generator(\"Once upon a time,\", { max_new_tokens: 8 }));\n",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Official description, @huggingface/transformers",
      "display": "State-of-the-art Machine Learning for the web. Run 🤗 Transformers directly in your browser, with no need for a server!",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Quickstart source file, @huggingface/transformers",
      "display": "docs/source/api/pipelines.md",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Repository stars, @huggingface/transformers",
      "display": "16.4K",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Bundled local model runtime, @huggingface/transformers",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "SDK-managed tool loop, @huggingface/transformers",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Native inference role, @huggingface/transformers",
      "display": "In-process ONNX language-model execution and tokenization in Node/browser,with downloadable supported model assets.",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Exact external generation contract, @huggingface/transformers",
      "display": "Actual same-file singleton imports AutoTokenizer,AutoModelForCausalLM,TextStreamer,and InterruptableStoppingCriteria from selected SDK. Current4.3.2 tokenizer supports add_generation_prompt/return_dict; generator accepts native Tensor inputs,past_key_values,max_new_tokens,do_sample,streamer,stopping_criteria,and return_dict_in_generate. Streamer accepts skip_prompt,skip_special_tokens,callback_function,and token_callback_function. Exact current JS StoppingCriteriaList.extend explicitly wraps a single StoppingCriteria instance; this proves actual JavaScript acceptance even though narrower generate JSDoc lists array/list. No broader TypeScript declaration compatibility asserted. Current return_dict_in_generate response supplies sequences and past_key_values; tokenizer.batch_decode(skip_special_tokens:true) returns strings. Host posts streaming updates then complete decoded sequences,including original prompt according to decoding behavior. TPS is an original per-run host measurement,not a claimed performance benchmark. Requires supported WebGPU,matching model/ONNX assets,q4f16 support,worker host,compatible tokenizer,and cache management.",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Runtime,account,and model prerequisites, @huggingface/transformers",
      "display": "Supported ESM Node/browser runtime and available ONNX model/tokenizer assets. Model download/cache and local inference memory required; no hosted inference account required for this public example. Default runtime differs from external WebGPU worker example.",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Tool execution boundary, @huggingface/transformers",
      "display": "Compared native causal model generation produces token sequences/cache and streams decoded text. It is not an application-function invocation loop; custom host parsers/agent runtimes can add tool use around generated text.",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "JavaScript stopping-criteria acceptance, @huggingface/transformers",
      "display": "Single InterruptableStoppingCriteria accepted by actual4.3.2 JS extend implementation; generate JSDoc is narrower. No universal TS-declaration compatibility assertion.",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Project function, @huggingface/transformers",
      "display": "async function generate(messages) {\n  // Retrieve the text-generation pipeline.\n  const [tokenizer, model] = await TextGenerationPipeline.getInstance();\n\n  const inputs = tokenizer.apply_chat_template(messages, {\n    add_generation_prompt: true,\n    return_dict: true,\n  });\n\n  let startTime;\n  let numTokens = 0;\n  let tps;\n  const token_callback_function = () => {\n    startTime ??= performance.now();\n\n    if (numTokens++ > 0) {\n      tps = (numTokens / (performance.now() - startTime)) * 1000;\n    }\n  };\n  const callback_function = (output) => {\n    self.postMessage({\n      status: \"update\",\n      output,\n      tps,\n      numTokens,\n    });\n  };\n\n  const streamer = new TextStreamer(tokenizer, {\n    skip_prompt: true,\n    skip_special_tokens: true,\n    callback_function,\n    token_callback_function,\n  });\n\n  // Tell the main thread we are starting\n  self.postMessage({ status: \"start\" });\n\n  const { past_key_values, sequences } = await model.generate({\n    ...inputs,\n    past_key_values: past_key_values_cache,\n\n    // Sampling\n    do_sample: false,\n\n    max_new_tokens: 1024,\n    streamer,\n    stopping_criteria,\n    return_dict_in_generate: true,\n  });\n  past_key_values_cache = past_key_values;\n\n  const decoded = tokenizer.batch_decode(sequences, {\n    skip_special_tokens: true,\n  });\n\n  // Send the output back to the main thread\n  self.postMessage({\n    status: \"complete\",\n    output: decoded,\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Project source file, @huggingface/transformers",
      "display": "llama-3.2-webgpu/src/worker.js",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Project full_name, @huggingface/transformers",
      "display": "huggingface/transformers.js-examples",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Project stargazers_count, @huggingface/transformers",
      "display": "2.1K",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "What, ai",
      "display": "Generates and streams text from many model providers through one TypeScript toolkit.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Strength lead, ai",
      "display": "Works across UI frameworks",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Strength body, ai",
      "display": "The toolkit runs in Next.js, React, Svelte, Vue, Angular, and Node.js.",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Strength lead, ai tools",
      "display": "Tools build on text generation",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Strength body, ai tools",
      "display": "Tool calling and structured data generation build on the same text functions.",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "What, bedrock runtime",
      "display": "Calls Amazon Bedrock models from Node.js, browsers, and React Native.",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Strength lead, bedrock runtime",
      "display": "One interface across models",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Strength body, bedrock runtime",
      "display": "The Converse operation sends messages to any Bedrock model that supports them.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "Watch out lead, bedrock runtime",
      "display": "Model-specific parameters pass through",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Watch out body, bedrock runtime",
      "display": "Parameters unique to one model go to that model alongside the shared request fields.",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "What, mistral",
      "display": "Calls the Mistral AI chat completion and embeddings APIs from TypeScript.",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Strength lead, mistral",
      "display": "Streams server-sent events",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "Strength body, mistral",
      "display": "Responses can stream to the application as server-sent events.",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "What, langchain openai",
      "display": "Connects OpenAI chat models to LangChain.js through the ChatOpenAI class.",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "What, transformers.js",
      "display": "Runs pretrained Hugging Face models in the browser without a server.",
      "asOf": "2026-11-17"
    },
    "F297": {
      "label": "Strength lead, transformers.js",
      "display": "Mirrors the Python API",
      "asOf": "2026-11-17"
    },
    "F298": {
      "label": "Strength body, transformers.js",
      "display": "The same pretrained models run through an API close to the Python transformers library.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript LLM API client libraries OpenAI Anthropic Google GenAI Ollama streaming tools structured responses code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
