> ## Documentation Index
> Fetch the complete documentation index at: https://silmaril.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Framework SDKs

> Choose a Silmaril integration for Vercel AI SDK, LangChain, or LangGraph.

Connect Silmaril to the framework that runs your model or orchestrates your agent.

<a id="prerequisites" />

Start with the [TypeScript SDK](/docs/sdk/typescript) or [Python SDK](/docs/sdk/python), then add the integration for your framework.

<a id="vercel-ai-sdk" />

<a id="langchain-and-langgraph" />

<CardGroup cols={2}>
  <Card title="Vercel AI SDK" href="/docs/sdk/vercel-ai" icon="https://mintcdn.com/silmarilsecurity/-o1oGeQ7clCTZkbl/assets/vercel.svg?fit=max&auto=format&n=-o1oGeQ7clCTZkbl&q=85&s=d9011f21f5baf8066ed6c4c849d0c1de" arrow={true} className="docs-path-card" width="24" height="24" data-path="assets/vercel.svg">
    Check model input with middleware and classify generated text before returning it.
  </Card>

  <Card title="LangChain and LangGraph" href="/docs/sdk/langchain" icon="https://mintcdn.com/silmarilsecurity/-o1oGeQ7clCTZkbl/assets/langchain.svg?fit=max&auto=format&n=-o1oGeQ7clCTZkbl&q=85&s=11c22650f73ef8b12ba0fea105293d06" arrow={true} className="docs-path-card" width="16" height="16" data-path="assets/langchain.svg">
    Add callback handlers to model calls and graph execution in TypeScript or Python.
  </Card>
</CardGroup>

<a id="vercel-ai-gateway" />

<a id="expected-result" />

For gateway-routed model traffic, choose [LiteLLM or Vercel AI Gateway](/docs/gateways/overview).
