Skip to main content

Axemere AI Gateway LangChain integration — ChatAiGateway BaseChatModel

Project description

axemere-gateway-langchain

LangChain BaseChatModel integration for the Axemere AI Gateway. Drop ChatAiGateway into any LangChain chain or agent — the gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.

Install

pip install axemere-gateway-langchain

Usage

from axemere.gateway.langchain import ChatAiGateway

llm = ChatAiGateway(provider="openai", model="gpt-4o-mini")
# reads AXEMERE_GATEWAY_URL + AXEMERE_WORKLOAD_TOKEN from env

response = llm.invoke("Hello")
print(response.content)

Works anywhere a LangChain BaseChatModel is accepted — chains, agents, LCEL pipelines.

Configuration

Env var Description
AXEMERE_GATEWAY_URL Gateway base URL, e.g. http://localhost:7080
AXEMERE_WORKLOAD_TOKEN Workload token issued by the gateway

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axemere_gateway_langchain-0.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

axemere_gateway_langchain-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file axemere_gateway_langchain-0.1.0.tar.gz.

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8550d5a74e15528bcbde74378a6d08a5c8e32daf1c27ffb4d85bc73801cbee42
MD5 8e91abb620d65c4feaaa9e0dd1b5fc89
BLAKE2b-256 03e51746e5bee679c8c46896d466ae5485ed3510567c5ffbcb55a550f857cc1a

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.1.0.tar.gz:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file axemere_gateway_langchain-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for axemere_gateway_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6473a581e51f5c36fc841fe3211ee265a569699677e9177828eb102fd1aa720
MD5 d2ee8b719512f17dae99dad4d2845d7d
BLAKE2b-256 617d5ee0bda6057a3950925da150ffdd7f6abc04dc1606a2630e523f9072bd43

See more details on using hashes here.

Provenance

The following attestation bundles were made for axemere_gateway_langchain-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Axemere-LLC/axemere-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page