Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENG-1110: onboard utility model #329

Merged
merged 7 commits into from
Dec 4, 2024

Conversation

thiago-aixplain
Copy link
Collaborator

@thiago-aixplain thiago-aixplain commented Dec 4, 2024

from aixplain.factories import ModelFactory

def main(a: int, b: int):
    """
    This function adds two numbers
    """
    return a + b

utility_model = ModelFactory.create_utility_model(
    name="Add Function",
    code=main,
)
response = utility_model.run({ "a": 1, "b": 2 })

@thiago-aixplain thiago-aixplain merged commit 3ccbf62 into development Dec 4, 2024
@thiago-aixplain thiago-aixplain deleted the ENG-1110-onboardUtilities branch December 5, 2024 14:08
@thiago-aixplain thiago-aixplain restored the ENG-1110-onboardUtilities branch December 10, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants