mem0ai / mem0

The Memory layer for your AI apps
https://mem0.ai
Apache License 2.0
21.37k stars 1.95k forks source link

Calling multiple functions openai #1466

Open inderpreetsingh01 opened 2 months ago

inderpreetsingh01 commented 2 months ago

🚀 The feature

def multiply(a: int, b: int) -> int:
    """Multiply two integers together.

    Args:
        a: First integer
        b: Second integer
    """
    return a * b

def add(a: int, b: int) -> int:
    """Add two integers together.

    Args:
        a: First integer
        b: Second integer
    """
    return a + b

llm = OpenAILlm(tools=[multiply, add])
app = App(llm=llm)

Motivation, pitch

it would be great if we could provide option of multiple functions

SGA-pranamika-pandey commented 1 month ago

Hi All, I'm new to this project and would love to contribute. May I understand more about this issue please? Is this the parallel function calling feature of Open AI LLM as described here: https://platform.openai.com/docs/guides/function-calling/parallel-function-calling?

Thanks!