Registry / jeremylongshore

jeremylongshore/tons-of-skills-marketplace/langchain-model-inference

Invoke Claude, GPT-4o, and Gemini through LangChain 1.0 without tripping on the content-block, token-accounting, and structured-output quirks that silently break production code. Use when initializing chat models, routing across providers, iterating AIMessage content, or choosing a structured-output method. Trigger with "langchain model inference", "ChatAnthropic", "ChatOpenAI", "with_structured_output", "AIMessage content blocks", "langchain routing".

Agent skill · version 0.0.0-main.1794343399.g0500b27 · from jeremylongshore/tons-of-skills-marketplace

Install

npx yarkr-cli add skill:jeremylongshore/tons-of-skills-marketplace/langchain-model-inference

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:jeremylongshore/tons-of-skills-marketplace/langchain-model-inference
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:jeremylongshore/tons-of-skills-marketplace/langchain-model-inference

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:jeremylongshore/tons-of-skills-marketplace/langchain-model-inference

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.