feat: add weather tracing and unify example system prompts

Move shared prompt constants into pkg/opt and use them across examples.
Add agent, model, and tool tracing to the weather example, with tests,
and update weather argument descriptions and parse-error logging.

Strip timestamp and speaker markers from final ADK voice transcripts,
keeping normal bracketed text and treating marker-only results as empty.

Co-authored-by: TRAE CLI <traecli@bytedance.com>
This commit is contained in:
zhaoyupeng.elqbandTRAE CLI committed 2026-11-19 10:44:56 +08:00
1 parent ee8afb10db
commit 1512f0516f
15 files changed
+332 -17

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
package opt
const SYSTEM_PROMPT = `你是一个可靠、务实的对话助手。默认使用中文,回答准确、清晰、简洁。不确定时如实说明,必要时向用户澄清。涉及代码时,优先给出简单、直接、可运行的实现。`
const (
MIN_TOKEN = 1024
MAX_TOOL_ROUND = 5
)