Skip to content

Commit

Permalink
chore: sistema de imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RWallan committed May 21, 2024
1 parent c3a9c43 commit 7bdf762
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions openiziai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__version__ = '0.1.0'

from .agents import Agent as Agent
from .fine_tuning import FineTuning as FineTuning
from . import agents as agents
from . import tools as tools
from .task import Task as Task
3 changes: 2 additions & 1 deletion openiziai/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Módulo que gerencia métodos relacionado aos Agentes."""

from .agent import Agent
from .manager import AgentManager

__all__ = ['Agent']
__all__ = ['Agent', 'AgentManager']
1 change: 0 additions & 1 deletion openiziai/fine_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def status(self) -> Optional[str]:

if self._job_status != JobStatus.COMPLETED:
_job_status = self.client.fine_tuning.jobs.retrieve(job_id).status
print(_job_status)
self._job_status = JobStatus(_job_status)

return self._job_status.name
Expand Down
3 changes: 1 addition & 2 deletions tests/agents/test_agent.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from pydantic import ValidationError

from openiziai.agents.agent import Agent
from openiziai.agents import Agent
from openiziai.schemas import GPTModel, Message


Expand Down Expand Up @@ -50,7 +50,6 @@ def test_agent_prompt(openai_chat, valid_task):
expected_temperature = 0.5

result = agent.prompt(prompt='teste')
print(result.response)

assert result.id == '123'
assert result.prompt == 'teste'
Expand Down
2 changes: 1 addition & 1 deletion tests/agents/test_manager.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from openiziai.agents.manager import AgentManager
from openiziai.agents import AgentManager
from openiziai.schemas import Message


Expand Down
2 changes: 1 addition & 1 deletion tests/tools/test_prep_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import shutil
from pathlib import Path

from openiziai.tools.prep_data import prep_data
from openiziai.tools import prep_data


def test_prep_data_with_persistant_data():
Expand Down
2 changes: 1 addition & 1 deletion tests/tools/test_train_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest
from pydantic import ValidationError

from openiziai.tools.train_data import TrainDataTool
from openiziai.tools import TrainDataTool


@pytest.mark.trio()
Expand Down

0 comments on commit 7bdf762

Please sign in to comment.