Skip to main content

Pydantic AI Unofficial Models

A package containing support for unofficial wrapper of LLM Models in the Pydantic AI framework/style/ecosystem.

Meta AI API (Unofficial)

Basic Usage

from pydantic_ai import Agent
from pydantic_ai_unofficial_models import MetaAIChatModel

model = MetaAIChatModel()
agent = Agent(model)

response = agent.run_sync("Hi, I am John, give some famous personality names based of my name.")

print(response)

Usage with Tools

from pydantic_ai import Agent
from pydantic_ai_unofficial_models import MetaAIChatModel

model = MetaAIChatModel()
agent = Agent(model)

@agent.tool_plain
def add(a: int, b: int) -> int:
    """Add two numbers."""
    return a + b

@agent.tool_plain
def multiply(a: int, b: int) -> int:
    """Multiply two numbers."""
    return a * b

@agent.tool_plain
def subtract(a: int, b: int) -> int:
    """Subtract two numbers."""
    return a - b

@agent.tool_plain
def divide(a: int, b: int) -> float:
    """Divide two numbers."""
    return a / b

result = agent.run_sync("I have borrowed $2,000 at 6% interest for 1 year. What’s the EMI?")
print(result)

Metadata

Release files for pydantic-ai-unofficial-models 0.2.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 pydantic-ai-unofficial-models 0.2.0
File Size Uploaded Provenance Actions
pydantic_ai_unofficial_models-0.2.0.tar.gz 8.0 kB Without provenance Details for pydantic_ai_unofficial_models-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-ai-unofficial-models 0.2.0
File Interpreter ABI Platform Actions
pydantic_ai_unofficial_models-0.2.0-py3-none-any.whl Python 3 none any Details for pydantic_ai_unofficial_models-0.2.0-py3-none-any.whl

Total release size: 15.7 kB

Release files / pydantic_ai_unofficial_models-0.2.0.tar.gz

Download URL pydantic_ai_unofficial_models-0.2.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
91b5e0e2f0e77024704effe4a442193f2f9f21fe572c2e440abdeb5475213169
BLAKE2b-256 checksum
How to use checksums
4c9cfe27bfdc04154d3f8144ca6871e5f78832d84d6924e69fa80bde412447b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / pydantic_ai_unofficial_models-0.2.0-py3-none-any.whl

Download URL pydantic_ai_unofficial_models-0.2.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19402873ef19dd54d781df5cffc9b71a4511baf5223f709036c7b09afeaee2a9
BLAKE2b-256 checksum
How to use checksums
e93b987db0cbbbf2bb6a0b0ad5ba8245863d962473fd4c0b88806edd048a9a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for pydantic-ai-unofficial-models 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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