Skip to content

pathcourse-health/pch-framework-adapters

Repository files navigation

PCH Framework Adapters

Six thin OpenAI-compatibility wrappers letting developers use PathCourse Health from the AI agent frameworks they already use. Each subdirectory is its own publishable package.

The PCH gateway at https://gateway.pathcoursehealth.com/v1 is fully OpenAI API-compatible. Every adapter is a thin layer that points the framework's existing OpenAI integration at the PCH gateway. A developer with 10,000 lines of LangChain code switches by changing one line.

Packages

Package Ecosystem Registry Source
langchain-pathcourse LangChain (Python) PyPI langchain-pathcourse/
@pathcourse/langchain LangChain (JS) npm langchain-pathcourse-js/
@pathcourse/ai Vercel AI SDK (Next.js) npm pathcourse-ai-sdk/
crewai-pathcourse CrewAI PyPI crewai-pathcourse/
pydantic-ai-pathcourse Pydantic AI PyPI pydantic-ai-pathcourse/
autogen-pathcourse AutoGen / AG2 PyPI autogen-pathcourse/

Working examples

Step-by-step examples for every adapter live in the pch-integration-examples repo under frameworks/. Start there if you're new to PCH.

Publishing a new version

Python (PyPI)

cd <package-dir>                      # langchain-pathcourse, crewai-pathcourse, etc.
python -m build
python -m twine check dist/*
python -m twine upload dist/*         # production PyPI (set TWINE_USERNAME=__token__, TWINE_PASSWORD=<token>)

TypeScript (npm)

cd <package-dir>                      # langchain-pathcourse-js or pathcourse-ai-sdk
npm install
npm run build
npm publish --dry-run                 # inspect what will ship
npm publish --access public           # 2FA OTP prompt

Verifying a new release

pip install <package-name>
python -c "from <module> import <Class>; print('OK')"

npm install <@scope/name>
node -e "const p = require('<@scope/name>'); console.log('OK')"

Versioning

Each package version is independent. The PCH SDK at pathcourse-sdk / @pathcourse/sdk is on a separate version track. Bump only the packages you actually changed.

Repository layout

pch-framework-adapters/
├── README.md                       # this file
├── LICENSE
├── .gitignore
├── langchain-pathcourse/           # Python — extends ChatOpenAI
├── langchain-pathcourse-js/        # TypeScript — extends ChatOpenAI
├── pathcourse-ai-sdk/              # TypeScript — Vercel AI SDK provider
├── crewai-pathcourse/              # Python — wraps CrewAI's LLM
├── pydantic-ai-pathcourse/         # Python — wraps OpenAIModel
└── autogen-pathcourse/             # Python — config_list builder

License

MIT — see LICENSE.

About

PCH adapters for LangChain, CrewAI, Pydantic AI, AutoGen, and the Vercel AI SDK - autonomous agent inference with USDC billing on Base L2

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors