Skip to content

Mr-Destructive/meta_ai_api_tool_call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Fork of meta_ai_api with support for tool calling like response

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages