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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meta_ai_api_tool_call-0.1.0.tar.gz.
File metadata
- Download URL: meta_ai_api_tool_call-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bae7d7575d391a21f6500b6166b0524e2127265483588454b98f04048bbc4072
|
|
| MD5 |
85cb7018a6aacf8e64fd397a24ea00c4
|
|
| BLAKE2b-256 |
07d9bf69d273e3dd4459f5b4c49827ed0beb0da77338870648b3833eea523683
|
File details
Details for the file meta_ai_api_tool_call-0.1.0-py3-none-any.whl.
File metadata
- Download URL: meta_ai_api_tool_call-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa826c483471738dc350f4314c021eeddbcd6035b6b360c25d10a2383f2ddfa
|
|
| MD5 |
ed01d868989f349eed7facf6d940fbf1
|
|
| BLAKE2b-256 |
723dbaa9636e614807107d64ac324514ace80c585f8afe2916303b8c130376da
|