Skip to content

Commit 874ab7b

Browse files
committed
Update handle_token_limit.py
1 parent 331ae1a commit 874ab7b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/summarization/handle_token_limit.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
model=model,
4949
tools=tools,
5050
summarize_threshold=1,
51-
summary_window_ratio=0.02
51+
summary_window_ratio=0.02,
5252
)
5353
camel_agent.reset()
5454

@@ -58,13 +58,11 @@
5858
)
5959

6060
# simulate a long conversation
61-
for i in range(20):
61+
for _i in range(20):
6262
response = camel_agent.step(usr_msg)
6363
print(camel_agent._summary_token_count)
6464

65-
#handle a large file
66-
usr_msg = (
67-
f"../../uv.lock,read this file"
68-
)
65+
# handle a large file
66+
usr_msg = "../../uv.lock,read this file"
6967

70-
response = camel_agent.step(usr_msg)
68+
response = camel_agent.step(usr_msg)

0 commit comments

Comments
 (0)