Skip to content

Commit bdf129c

Browse files
authored
fix: resolve lint and test failures from new endpoints (#360)
1 parent 53b5c36 commit bdf129c

5 files changed

Lines changed: 23 additions & 6 deletions

File tree

src/agentex/resources/agents/agents.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from pydantic import ValidationError
1111

1212
from ...types import agent_rpc_params, agent_list_params, agent_rpc_by_name_params
13-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
13+
from ..._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, omit, not_given
1414
from ..._utils import path_template, maybe_transform, async_maybe_transform
1515
from ..._compat import cached_property
1616
from .schedules import (
@@ -38,7 +38,14 @@
3838
)
3939
from ...types.agent import Agent
4040
from ..._base_client import make_request_options
41-
from ...types.agent_rpc_response import AgentRpcResponse
41+
from ...types.agent_rpc_response import (
42+
AgentRpcResponse,
43+
SendEventResponse,
44+
CancelTaskResponse,
45+
CreateTaskResponse,
46+
SendMessageResponse,
47+
SendMessageStreamResponse,
48+
)
4249
from ...types.agent_list_response import AgentListResponse
4350
from ...types.shared.delete_response import DeleteResponse
4451

src/agentex/types/agent_rpc_response.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@
1111
from .agent_rpc_result import AgentRpcResult
1212
from .task_message_update import TaskMessageUpdate
1313

14-
__all__ = ["AgentRpcResponse"]
14+
__all__ = [
15+
"AgentRpcResponse",
16+
"CancelTaskResponse",
17+
"CreateTaskResponse",
18+
"SendEventResponse",
19+
"SendMessageResponse",
20+
"SendMessageStreamResponse",
21+
]
1522

1623

1724
class BaseAgentRpcResponse(BaseModel):

tests/api_resources/agents/test_deployments.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex.types import AgentRpcResponse
1312
from agentex.types.agents import (
1413
DeploymentListResponse,
@@ -18,6 +17,8 @@
1817
)
1918
from agentex.types.shared import DeleteResponse
2019

20+
from ...utils import assert_matches_type
21+
2122
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2223

2324

tests/api_resources/agents/test_schedules.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex._utils import parse_datetime
1312
from agentex.types.agents import (
1413
ScheduleListResponse,
@@ -20,6 +19,8 @@
2019
)
2120
from agentex.types.shared import DeleteResponse
2221

22+
from ...utils import assert_matches_type
23+
2324
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
2425

2526

tests/api_resources/test_checkpoints.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
import pytest
99

1010
from agentex import Agentex, AsyncAgentex
11-
from tests.utils import assert_matches_type
1211
from agentex.types import (
1312
CheckpointPutResponse,
1413
CheckpointListResponse,
1514
CheckpointGetTupleResponse,
1615
)
1716

17+
from ..utils import assert_matches_type
18+
1819
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1920

2021

0 commit comments

Comments
 (0)