# 从 CangjieMagic weather_assistant.cj 翻译
# 原始: @agent[model:"ollama:phi3", executor:"react:5", ...]

agentId: cangjie-weather-assistant
name: WeatherAssistant
description: 天气查询与出行建议助手 (从 CangjieMagic @agent 翻译)
type: react

model:
  provider: ollama
  name: phi3
  temperature: 0.7

systemPrompt: |
  [APE Pattern]
  Action: 提供精准的天气查询与出行建议
  Purpose: 帮助用户规划行程并避免天气影响
  Expectation: 输出包含温度、降水概率和建议的结构化回复

react:
  maxSteps: 5          # executor: "react:5"
  toolTimeout: 30

memory:
  enabled: true
  strategy: local

mcp:
  localTools:
    - queryWeather     # @tool 获取天气
    - searchTravel     # @tool 搜索旅行
    # 注意: 缺少 terminate!

_source: cangjiemagic
_original_file: original/weather_assistant.cj
