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-504: Make the agent architecture configurable #243

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

thiago-aixplain
Copy link
Collaborator

No description provided.

@@ -44,7 +44,7 @@ class AgentFactory:
def create(
cls,
name: Text,
llm_id: Text,
llm_id: Text = "669a63646eb56306647e1091",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Optional in the method definition for all optional parameters e.g. Optional[llm_id].

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the use of Optional in type annotations in Python is intended to indicate that a value can either be of the specified type or None, no?. Since it has a not null value there is not need to use Optional. Please confirm.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, you're correct. Didn't know that actually: https://docs.python.org/3/library/typing.html#typing.Optional

@@ -67,6 +67,8 @@ def create(
Returns:
Agent: created Agent
"""
# assert that at least one tool is provided
assert len(tools) > 0, "At least one tool must be provided."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to force user to have at least one ModelTool or PipelineTool? I think if the user wants to use only serp api search we should let it do that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what the product asked, but you are correct. Implicitly we have serpAPI. I am going to change.

@thiago-aixplain thiago-aixplain merged commit 1700304 into development Sep 6, 2024
@thiago-aixplain thiago-aixplain deleted the ENG-504-agentSettings branch September 6, 2024 18:20
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