mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 15:37:55 +08:00
core/agent: drop increase-limit hint in favor of truncate tokens
This commit is contained in:
@@ -50,7 +50,7 @@ def truncate_tool_result(
|
||||
return (
|
||||
f"{text[:max_chars]}\n"
|
||||
f"...[Truncated ({max_chars} chars max.; {omitted} chars omitted). "
|
||||
f"You may ask for user to increase the limit via configuration file.]"
|
||||
f"Use `get_truncated` when a `TRUNCATE_TOKEN` is shown.]"
|
||||
)
|
||||
return f"{text[:max_chars]}\n...[truncated {omitted} characters]"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user