Skip to content

Conversation

@thiago-aixplain
Copy link
Contributor

No description provided.

self._validate_deployment_readiness()
previous_status = self.status
try:
if hasattr(self, "tools"):
Copy link
Contributor

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
Contributor

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
Contributor

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
Contributor

@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
Contributor

@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.

3 participants