Commit Graph

4 Commits (b14bcbcd541fc0fdd67eef518828a28302358e18)

Author SHA1 Message Date
澍 11aa00f85f
fix(agent): preserve untouched numeric tool arguments during casting (#3936)
* fix(agent): preserve untouched numeric tool arguments during casting

Fixes Tencent/WeKnora#3934

* test(agent): wrap long schema literal to satisfy lll

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-08 13:14:18 +08:00
caiyuze-cpu d9ba7716b5
fix(agent): harden tool parameter parsing against LLM type mismatches (#1505) 2026-05-28 07:50:26 +08:00
wizardchen 1416217a0a refactor(prompt): streamline context handling in templates
- Removed redundant instructions from the context template to simplify user guidance.
- Added context retrieval information to the system prompt, ensuring consistency in how context is presented across templates.
- Enhanced parameter casting to allow single strings to be treated as string arrays, improving flexibility in parameter handling.
- Adjusted minimum thought requirements in sequential thinking to allow for more varied input scenarios.
2026-03-25 22:08:29 +08:00
wizardchen e936e0b347 feat(agent): implement LLM call timeout and transient error handling
- Introduced a configurable LLM call timeout with a default value, allowing for better control over LLM call durations.
- Added logic to retry transient errors (e.g., timeouts, rate limits) up to a specified maximum number of retries, improving robustness in error handling.
- Implemented parameter casting for tool arguments to ensure correct types are used, addressing common LLM quirks.
- Enhanced tool execution error messages with guidance for retrying with different approaches.
- Added validation for configuration values to prevent runtime errors.
2026-03-25 22:08:29 +08:00