feat(module12): update code and environment dependencies

This commit is contained in:
Annyfee
2025-12-18 17:49:39 +08:00
parent 3af39d4df5
commit 73c4c0db88
8 changed files with 367 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
from agents import function_tool
# 全局上下文,所有 Agent 共享
context_variables = {
"user_name":"张三(白金会员)",
"flight_no":"CA1234"
}
# 业务工具
@function_tool
def execute_refund():
"""执行退款逻辑"""
return "✅️ 退款申请已提交,预计3个工作日内到账。"
@function_tool
def check_seat():
"""查询座位余量"""
return "✅ 明日航班尚有余票。"