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.
- Normal Text based chat
- Tool-call support for advanced integrations
pip install meta_ai_api_tool_callfrom 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)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)Contributions are welcome! Please open issues or pull requests on GitHub.
Follow the meta-ai and Meta's terms and policies for usage.
This project is not affiliated with Meta, Facebook, or their partners. Use at your own risk and comply with all applicable terms of service.