-
Notifications
You must be signed in to change notification settings - Fork 19
ENG-2105: persist sql data #528
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
Conversation
@@ -67,6 +67,8 @@ def deploy(self) -> None: | |||
self._validate_deployment_readiness() | |||
previous_status = self.status | |||
try: | |||
if hasattr(self, "tools"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be checked by generic type T as I initialize single agents with T = Tool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if deploy method changes to raise Notimplemented error it should be handled here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not get this point. Is there a way to check whether "T" is a tool?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes you can just check isinstance(T, Tool)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FAILED tests/functional/agent/agent_functional_test.py::test_sql_tool[AgentFactory] - Failed: Timeout (>30.0s) from pytest-timeout.
FAILED tests/functional/agent/agent_functional_test.py::test_sql_tool[Agent] - Failed: Timeout (>30.0s) from pytest-timeout.
FAILED tests/functional/agent/agent_functional_test.py::test_sql_tool_with_csv[AgentFactory] - Failed: Timeout (>30.0s) from pytest-timeout.
FAILED tests/functional/agent/agent_functional_test.py::test_sql_tool_with_csv[Agent] - Failed: Timeout (>30.0s) from pytest-timeout.
FAILED tests/functional/agent/agent_functional_test.py::test_agent_with_pipeline_tool[AgentFactory] - AssertionError: assert 'hello' in 'agent stopped due to iteration limit or time limit.'
FAILED tests/functional/agent/agent_functional_test.py::test_agent_with_pipeline_tool[Agent] - AssertionError: assert 'hello' in 'agent stopped due to iteration limit or time limit.'
No description provided.