Skip to content

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

Merged
merged 9 commits into from
May 27, 2025
Merged

Conversation

thiago-aixplain
Copy link
Contributor

No description provided.

@@ -67,6 +67,8 @@ def deploy(self) -> None:
self._validate_deployment_readiness()
previous_status = self.status
try:
if hasattr(self, "tools"):
Copy link
Member

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

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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)

Copy link
Member

@ahmetgunduz ahmetgunduz left a comment

Choose a reason for hiding this comment

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

Added comments

Copy link
Member

@ahmetgunduz ahmetgunduz left a 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.'

@ahmetgunduz ahmetgunduz self-requested a review May 27, 2025 11:56
@thiago-aixplain thiago-aixplain merged commit cdaaa81 into development May 27, 2025
@thiago-aixplain thiago-aixplain deleted the ENG-2105-persistSQLData branch May 27, 2025 12:51
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