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.3.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.3-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.3.tar.gz.

File metadata

  • Download URL: meta_ai_api_tool_call-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 bfd170ceaabf282e69c31817798339aa3f3a871d5c2dfae665af5315f53cf000
MD5 eea0c8b27e345dd1974408419e2a8541
BLAKE2b-256 7a67917455e485c834131252a8cd88b9be5ac30eda5b640685206399d20e2e51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for meta_ai_api_tool_call-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4ac5375432d099e6893367a3e91b8a1e78a62e49ac49ec8b6576460c1d03bee1
MD5 929f906d5dc83c52aa5f09c622c840c9
BLAKE2b-256 be98067c54752e4c9ca29f55e816883dfab9a794e6b3d20405a3c9a2b22f468b

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