Skip to main content

weftai-providers

Provider tool adapters for Weftai. Install with pip install weftai-providers.

Adapters turn a bound Weftai tool into the tool-definition and tool-result shapes expected by a model host; they do not make provider HTTP requests or choose a model on your behalf.

Module Tool surface
openai Chat Completions, Responses, legacy functions, Assistants/Realtime helpers, Azure, and OpenAI-compatible presets
anthropic Messages tools and the optional Anthropic tool runner
google Gemini generateContent and Interactions
bedrock Amazon Bedrock Converse
ollama Native /api/chat
cohere Cohere Chat v2
dashscope Native DashScope Generation and MultiModalConversation
hunyuan Tencent Cloud Hunyuan ChatCompletions
spark Classic iFlytek Spark WebSocket tools
ai_sdk Vercel AI SDK tool() shape

weftai.providers.openai.PRESETS covers the current OpenAI-shaped hosted, local, and regional hosts. The capability catalog validates known model/API combinations and points callers to an explicit API override when a model is unknown.

See the provider guide and run uv run --package weftai-example-chat python -m chat_examples.openai from a clone for a small OpenAI wire-shape example.

Laya decisions

The Laya adapter implements the shared Decider interface for a long-running HTTP service. Python: from weftai.providers.laya import LayaDecider; npm: import { LayaDecider } from "@weftai/providers/laya". Supply an operator-owned endpoint, and an httpx.AsyncClient in Python. Failures abstain; permissions remain the host's responsibility.

Release files for weftai-providers 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weftai-providers 0.4.0
File Size Uploaded
weftai_providers-0.4.0.tar.gz 27.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for weftai-providers 0.4.0
File Interpreter ABI Platform
weftai_providers-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 55.9 kB

Release files / weftai_providers-0.4.0.tar.gz

Download URL weftai_providers-0.4.0.tar.gz
Size 27.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ab9aee2f2661b761d28c16971950028d733b7897932e7a92a4302fbb93e1760f
BLAKE2b-256 checksum
How to use checksums
0b7fa8d24ffcd217b6ce5183d4751187b5f67013159fc54480c91ef09d6a4926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / weftai_providers-0.4.0-py3-none-any.whl

Download URL weftai_providers-0.4.0-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4295fa14cf168ef8faf40c5ef4d06fdf2b46ddd0227b76d48c1aced1d24da99e
BLAKE2b-256 checksum
How to use checksums
7f756e1dea15df4fabbf2250ed0396ab65bb26b2852ca777dffff94a2189ebf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

2 release files

0.2.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page