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:
1 parent
ee8afb10db
commit
1512f0516f
15 files changed
+332
-17
No files matched your search
+2
-1
@@ -9,6 +9,7 @@ import (
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"example.com/ueino/pkg/opt"
|
||||
"example.com/ueino/steps/basic/internal"
|
||||
"github.com/cloudwego/eino/adk"
|
||||
"github.com/cloudwego/eino/components/tool"
|
||||
@@ -21,7 +22,7 @@ func main() {
|
||||
|
||||
assistant, err := adk.NewChatModelAgent(ctx, &adk.ChatModelAgentConfig{
|
||||
Name: "terminal_chat",
|
||||
Instruction: "你是一个简洁的中文助手。",
|
||||
Instruction: opt.SYSTEM_PROMPT,
|
||||
Model: internal.MustNewChatModel(ctx),
|
||||
MaxIterations: 10,
|
||||
ToolsConfig: adk.ToolsConfig{
|
||||
|
||||
Reference in new issue
Block a user