Skip to content

Commit ba99789

Browse files
author
Chojan Shang
committed
fix: SessionUpdate5 -> ToolCallProgress
Signed-off-by: Chojan Shang <chojan.shang@vesoft.com>
1 parent 24d7246 commit ba99789

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/gen_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"SessionUpdate2": "AgentMessageChunk",
3535
"SessionUpdate3": "AgentThoughtChunk",
3636
"SessionUpdate4": "ToolCallStart",
37-
"SessionUpdate5": "ToolCallUpdate",
37+
"SessionUpdate5": "ToolCallProgress",
3838
"SessionUpdate6": "AgentPlanUpdate",
3939
"SessionUpdate7": "AvailableCommandsUpdate",
4040
"SessionUpdate8": "CurrentModeUpdate",

src/acp/schema.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ class ToolCallStart(BaseModel):
974974
]
975975

976976

977-
class ToolCallUpdate(BaseModel):
977+
class ToolCallProgress(BaseModel):
978978
field_meta: Annotated[
979979
Optional[Any],
980980
Field(alias="_meta", description="Extension point for implementations"),
@@ -1040,7 +1040,7 @@ class SessionNotification(BaseModel):
10401040
AgentMessageChunk,
10411041
AgentThoughtChunk,
10421042
ToolCallStart,
1043-
ToolCallUpdate,
1043+
ToolCallProgress,
10441044
AgentPlanUpdate,
10451045
AvailableCommandsUpdate,
10461046
CurrentModeUpdate,
@@ -1163,7 +1163,7 @@ class Model(
11631163
SessionUpdate2 = AgentMessageChunk
11641164
SessionUpdate3 = AgentThoughtChunk
11651165
SessionUpdate4 = ToolCallStart
1166-
SessionUpdate5 = ToolCallUpdate
1166+
SessionUpdate5 = ToolCallProgress
11671167
SessionUpdate6 = AgentPlanUpdate
11681168
SessionUpdate7 = AvailableCommandsUpdate
11691169
SessionUpdate8 = CurrentModeUpdate

0 commit comments

Comments
 (0)