Skip to content

Commit

Permalink
refactor: Lint agents-api (CI)
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorrr authored and github-actions[bot] committed Oct 4, 2024
1 parent fe8a8c9 commit a6bcbbe
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion agents-api/agents_api/clients/worker/worker.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import httpx

from ...env import temporal_worker_url

from .types import (
MemoryManagementTask,
MemoryManagementTaskArgs,
Expand Down
1 change: 1 addition & 0 deletions agents-api/agents_api/common/exceptions/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from . import BaseCommonException


class BaseSessionException(BaseCommonException):
"""
Base exception class for session-related errors.
Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/common/protocol/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AgentDefaultSettings(BaseModel):

top_p: float = 1.0
"""Top-p sampling setting controlling the nucleus of the probability distribution to sample from."""

repetition_penalty: float = 1.0
"""Penalty applied to discourage repetition in the agent's responses."""

Expand Down
2 changes: 1 addition & 1 deletion agents-api/agents_api/common/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def default(self, obj) -> Any:
obj: The object to serialize.
Returns: A serializable object or raises a TypeError if the object is not serializable.
"""

if obj is None:
return self._default_empty_value

Expand Down
1 change: 0 additions & 1 deletion agents-api/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
from agents_api.models.user.create_user import create_user
from agents_api.models.user.delete_user import delete_user
from agents_api.web import app

from tests.utils import patch_embed_acompletion as patch_embed_acompletion_ctx

EMBEDDING_SIZE: int = 1024
Expand Down
1 change: 0 additions & 1 deletion agents-api/tests/test_execution_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from agents_api.models.execution.get_execution import get_execution
from agents_api.models.execution.list_executions import list_executions
from agents_api.models.execution.lookup_temporal_data import lookup_temporal_data

from tests.fixtures import (
cozo_client,
test_developer_id,
Expand Down
1 change: 0 additions & 1 deletion agents-api/tests/test_execution_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
)
from agents_api.models.task.create_task import create_task
from agents_api.routers.tasks.create_task_execution import start_execution

from tests.fixtures import cozo_client, test_agent, test_developer_id
from tests.utils import patch_integration_service, patch_testing_temporal

Expand Down
1 change: 0 additions & 1 deletion agents-api/tests/test_task_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from agents_api.models.task.get_task import get_task
from agents_api.models.task.list_tasks import list_tasks
from agents_api.models.task.update_task import update_task

from tests.fixtures import cozo_client, test_agent, test_developer_id, test_task


Expand Down

0 comments on commit a6bcbbe

Please sign in to comment.