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.2.tar.gz (11.3 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.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: meta_ai_api_tool_call-0.1.2.tar.gz
  • Upload date:
  • Size: 11.3 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.2.tar.gz
Algorithm Hash digest
SHA256 d2687ceaa4957196885a4b1af22aa5ab9abb587783e41ac3c694e1c54f118485
MD5 595d2fba1a69e5bc5649dbdc9fbb1705
BLAKE2b-256 d1238acf51c51d4737912bbb7fb4f90e2c1c7911ea8de374871fc390926f22c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meta_ai_api_tool_call-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1c4784b146bd8176a9998a3055247e9524e79afe74f5b573946caae09d219f47
MD5 c45a55c35f1e6632fe6c47c4511a92f8
BLAKE2b-256 e26988465367eb229da4b726bf0e10a01d7fad07d7b8af6b9f4737ed409d91e3

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