Skip to main content

A Python package for interacting with Meta AI API (reverse engineered) with tool calls.

Project description

Meta AI API

Fork of meta-ai-api with support for tool-calling

A Python package for interacting with the Meta AI API, including authentication, messaging, and tool-call capabilities.


Features

  • Normal Text based chat
  • Tool-call support for advanced integrations

Installation

pip install meta_ai_api_tool_call

Usage

Basic Example

from meta_ai_api_tool_call import MetaAI

# For unauthenticated (public) access
ai = MetaAI()
response = ai.prompt("Hello Meta!")
print(response)

# For authenticated access (recommended for full features)
ai = MetaAI(fb_email="your_fb_email", fb_password="your_fb_password")
response = ai.prompt("Hello with login!")
print(response)

Tool Call Example

from meta_ai_api_tool_call import MetaAI

def add(a: int, b: int) -> int:
    """Adds two numbers."""
    return a + b

ai = MetaAI()
tools = [add]
response = ai.prompt("Use the add tool to add 2 and 3", tools=tools)
print(response)

Contributing

Contributions are welcome! Please open issues or pull requests on GitHub.


License

Follow the meta-ai and Meta's terms and policies for usage.

Disclaimer

This project is not affiliated with Meta, Facebook, or their partners. Use at your own risk and comply with all applicable terms of service.

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

meta_ai_api_tool_call-0.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

meta_ai_api_tool_call-0.1.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file meta_ai_api_tool_call-0.1.1.tar.gz.

File metadata

  • Download URL: meta_ai_api_tool_call-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for meta_ai_api_tool_call-0.1.1.tar.gz
Algorithm Hash digest
SHA256 debb3d60f38b2441cd84df3c5371299f5d2a4794cc0d74df32a61053815b746d
MD5 9e70bc94d0c7861443a51c4caf0076f2
BLAKE2b-256 8cce03f8c2ec52dd767094d919bcd7b1201bf1e03c422497417d084733bf0f60

See more details on using hashes here.

File details

Details for the file meta_ai_api_tool_call-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for meta_ai_api_tool_call-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 224997d278a35b5e1adbe2e85ce1a9428638879bd1ce5b0945b4f80ced014944
MD5 0c317bf55f92eacf575bd25460f3b792
BLAKE2b-256 63fbb7dbe697ab230cb6b18ea38696a3c24d5d41332b710ec71365f450cc1531

See more details on using hashes here.

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