Skip to content

Commit f09e0fc

Browse files
Fix import sorting and unused imports
- Auto-fixed 190 linting issues with ruff --fix - Mainly import block sorting (I001) and unused imports (F401)
1 parent e50809c commit f09e0fc

File tree

163 files changed

+741
-764
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+741
-764
lines changed

examples/tutorials/00_sync/000_hello_acp/dev.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@
9393
"outputs": [],
9494
"source": [
9595
"# Test streaming response\n",
96-
"from agentex.types.task_message_update import StreamTaskMessageDelta, StreamTaskMessageFull\n",
9796
"from agentex.types.text_delta import TextDelta\n",
98-
"\n",
97+
"from agentex.types.task_message_update import StreamTaskMessageFull, StreamTaskMessageDelta\n",
9998
"\n",
10099
"# The result object of message/send will be a TaskMessageUpdate which is a union of the following types:\n",
101100
"# - StreamTaskMessageStart: \n",

examples/tutorials/00_sync/000_hello_acp/project/acp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from typing import AsyncGenerator, Union
2-
from agentex.lib.sdk.fastacp.fastacp import FastACP
3-
from agentex.lib.types.acp import SendMessageParams
1+
from typing import Union, AsyncGenerator
42

5-
from agentex.types.task_message_update import TaskMessageUpdate
3+
from agentex.lib.types.acp import SendMessageParams
4+
from agentex.lib.utils.logging import make_logger
65
from agentex.types.task_message import TaskMessageContent
6+
from agentex.lib.sdk.fastacp.fastacp import FastACP
7+
from agentex.types.task_message_update import TaskMessageUpdate
78
from agentex.types.task_message_content import TextContent
8-
from agentex.lib.utils.logging import make_logger
99

1010
logger = make_logger(__name__)
1111

examples/tutorials/00_sync/010_multiturn/dev.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@
9393
"outputs": [],
9494
"source": [
9595
"# Test streaming response\n",
96-
"from agentex.types.task_message_update import StreamTaskMessageDelta, StreamTaskMessageFull\n",
9796
"from agentex.types.text_delta import TextDelta\n",
98-
"\n",
97+
"from agentex.types.task_message_update import StreamTaskMessageFull, StreamTaskMessageDelta\n",
9998
"\n",
10099
"# The result object of message/send will be a TaskMessageUpdate which is a union of the following types:\n",
101100
"# - StreamTaskMessageStart: \n",

examples/tutorials/00_sync/010_multiturn/project/acp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import os
2-
from typing import AsyncGenerator, Union
2+
from typing import Union, AsyncGenerator
33

44
from agentex.lib import adk
5-
from agentex.lib.sdk.fastacp.fastacp import FastACP
65
from agentex.lib.types.acp import SendMessageParams
7-
from agentex.lib.types.llm_messages import AssistantMessage, LLMConfig, SystemMessage, UserMessage
8-
from agentex.types.task_message_update import TaskMessageUpdate
96
from agentex.types.task_message import TaskMessageContent
10-
from agentex.types.task_message_content import TextContent
117
from agentex.lib.utils.model_utils import BaseModel
8+
from agentex.lib.types.llm_messages import LLMConfig, UserMessage, SystemMessage, AssistantMessage
9+
from agentex.lib.sdk.fastacp.fastacp import FastACP
10+
from agentex.types.task_message_update import TaskMessageUpdate
11+
from agentex.types.task_message_content import TextContent
1212

1313
# Create an ACP server
1414
acp = FastACP.create(

examples/tutorials/00_sync/020_streaming/dev.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@
9393
"outputs": [],
9494
"source": [
9595
"# Test streaming response\n",
96-
"from agentex.types.task_message_update import StreamTaskMessageDelta, StreamTaskMessageFull\n",
9796
"from agentex.types.text_delta import TextDelta\n",
98-
"\n",
97+
"from agentex.types.task_message_update import StreamTaskMessageFull, StreamTaskMessageDelta\n",
9998
"\n",
10099
"# The result object of message/send will be a TaskMessageUpdate which is a union of the following types:\n",
101100
"# - StreamTaskMessageStart: \n",

examples/tutorials/00_sync/020_streaming/project/acp.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
import os
2-
from typing import AsyncGenerator, Union
2+
from typing import Union, AsyncGenerator
33

44
from agentex.lib import adk
5-
from agentex.lib.sdk.fastacp.fastacp import FastACP
65
from agentex.lib.types.acp import SendMessageParams
7-
from agentex.lib.types.llm_messages import AssistantMessage, LLMConfig, SystemMessage, UserMessage
8-
from agentex.types.task_message_update import StreamTaskMessageDelta, StreamTaskMessageDone, StreamTaskMessageFull, TaskMessageUpdate
9-
from agentex.types.task_message_delta import TextDelta
106
from agentex.lib.utils.model_utils import BaseModel
11-
from agentex.types.task_message_content import TaskMessageContent, TextContent
7+
from agentex.lib.types.llm_messages import LLMConfig, UserMessage, SystemMessage, AssistantMessage
8+
from agentex.lib.sdk.fastacp.fastacp import FastACP
9+
from agentex.types.task_message_delta import TextDelta
10+
from agentex.types.task_message_update import (
11+
TaskMessageUpdate,
12+
StreamTaskMessageDone,
13+
StreamTaskMessageFull,
14+
StreamTaskMessageDelta,
15+
)
16+
from agentex.types.task_message_content import TextContent, TaskMessageContent
1217

1318
# Create an ACP server
1419
acp = FastACP.create(

examples/tutorials/10_agentic/00_base/000_hello_acp/project/acp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import json
2+
23
from agentex.lib import adk
3-
from agentex.lib.sdk.fastacp.fastacp import FastACP
4+
from agentex.lib.types.acp import SendEventParams, CancelTaskParams, CreateTaskParams
45
from agentex.lib.types.fastacp import AgenticACPConfig
5-
from agentex.lib.types.acp import CancelTaskParams, CreateTaskParams, SendEventParams
6-
7-
from agentex.types.text_content import TextContent
86
from agentex.lib.utils.logging import make_logger
7+
from agentex.types.text_content import TextContent
8+
from agentex.lib.sdk.fastacp.fastacp import FastACP
99

1010
logger = make_logger(__name__)
1111

examples/tutorials/10_agentic/00_base/010_multiturn/project/acp.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
from typing import List
33

44
from agentex.lib import adk
5-
from agentex.lib.core.tracing.tracing_processor_manager import (
6-
add_tracing_processor_config,
7-
)
8-
from agentex.lib.sdk.fastacp.fastacp import FastACP
9-
from agentex.lib.types.acp import CancelTaskParams, CreateTaskParams, SendEventParams
5+
from agentex.lib.types.acp import SendEventParams, CancelTaskParams, CreateTaskParams
106
from agentex.lib.types.fastacp import AgenticACPConfig
7+
from agentex.lib.types.tracing import SGPTracingProcessorConfig
8+
from agentex.lib.utils.logging import make_logger
9+
from agentex.types.text_content import TextContent
10+
from agentex.lib.utils.model_utils import BaseModel
1111
from agentex.lib.types.llm_messages import (
12-
AssistantMessage,
13-
LLMConfig,
1412
Message,
15-
SystemMessage,
13+
LLMConfig,
1614
UserMessage,
15+
SystemMessage,
16+
AssistantMessage,
17+
)
18+
from agentex.lib.sdk.fastacp.fastacp import FastACP
19+
from agentex.lib.core.tracing.tracing_processor_manager import (
20+
add_tracing_processor_config,
1721
)
18-
from agentex.lib.types.tracing import SGPTracingProcessorConfig
19-
from agentex.lib.utils.logging import make_logger
20-
from agentex.lib.utils.model_utils import BaseModel
21-
from agentex.types.text_content import TextContent
2222

2323
logger = make_logger(__name__)
2424

examples/tutorials/10_agentic/00_base/020_streaming/project/acp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
from typing import List
33

44
from agentex.lib import adk
5-
from agentex.lib.sdk.fastacp.fastacp import FastACP
6-
from agentex.lib.types.acp import CancelTaskParams, CreateTaskParams, SendEventParams
5+
from agentex.lib.types.acp import SendEventParams, CancelTaskParams, CreateTaskParams
76
from agentex.lib.types.fastacp import AgenticACPConfig
8-
from agentex.lib.types.llm_messages import AssistantMessage, LLMConfig, Message, SystemMessage, UserMessage
97
from agentex.lib.utils.logging import make_logger
10-
from agentex.lib.utils.model_utils import BaseModel
118
from agentex.types.text_content import TextContent
9+
from agentex.lib.utils.model_utils import BaseModel
10+
from agentex.lib.types.llm_messages import Message, LLMConfig, UserMessage, SystemMessage, AssistantMessage
11+
from agentex.lib.sdk.fastacp.fastacp import FastACP
1212

1313
logger = make_logger(__name__)
1414

examples/tutorials/10_agentic/00_base/030_tracing/project/acp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
from typing import List
33

44
from agentex.lib import adk
5-
from agentex.lib.sdk.fastacp.fastacp import FastACP
6-
from agentex.lib.types.acp import CancelTaskParams, CreateTaskParams, SendEventParams
5+
from agentex.lib.types.acp import SendEventParams, CancelTaskParams, CreateTaskParams
76
from agentex.lib.types.fastacp import AgenticACPConfig
8-
from agentex.lib.types.llm_messages import AssistantMessage, LLMConfig, Message, SystemMessage, UserMessage
97
from agentex.lib.utils.logging import make_logger
10-
from agentex.lib.utils.model_utils import BaseModel
118
from agentex.types.text_content import TextContent
9+
from agentex.lib.utils.model_utils import BaseModel
10+
from agentex.lib.types.llm_messages import Message, LLMConfig, UserMessage, SystemMessage, AssistantMessage
11+
from agentex.lib.sdk.fastacp.fastacp import FastACP
1212

1313
logger = make_logger(__name__)
1414

0 commit comments

Comments
 (0)