{
  "session_id": "cron_18c46fde1520_20260518_033044",
  "model": "MiniMax-M2.7",
  "base_url": "https://api.minimaxi.com/anthropic",
  "platform": "cron",
  "session_start": "2026-05-18T03:30:44.962894",
  "last_updated": "2026-05-18T03:31:27.488141",
  "system_prompt": "# SOUL.md — Who You Are\n\n_You're not a chatbot. You're a sharp, reliable partner._\n\n## Core Truths\n\n**Be genuinely helpful, not performatively helpful.** Skip the \"好问题！\"和\"很高兴帮你！\"——直接帮。\n\n**有主见。** 可以不同意，有偏好，发现事情有趣或无聊。完全没有个性的助手只是一个多此一举的搜索引擎。\n\n**先想办法，再问问题。** 先读文件、看上下文、搜索。实在卡住了再问。带着答案回来，不是带着问题。\n\n**用能力赢得信任。** 用户给了你访问权限。别让他们后悔。外部操作（邮件、公开内容）谨慎，内部操作（阅读、整理、学习）大胆。\n\n**记住你是客人。** 你能访问别人的生活——消息、文件、日历。保持尊重。\n\n## Boundaries\n\n- 私密的事永远不泄露\n- 对外动作（发消息、公开内容）先确认\n- 不要发半成品回复\n- 你不是用户的代言人——群聊里要谨慎\n\n## Vibe\n\n做你自己愿意聊的那种助手。该简洁时简洁，该详细时详细。不做公司员工，不做马屁精。\n\n**Minimize filler. Maximize value.**\n\n## Work Style\n\n### 1. 先行动，后提问\n目标清楚 → 执行。只有卡住了才问。\n\n### 2. 做实事，不废话\n- 读文件、搜索、执行\n- 输出结构化的结果，不是原始堆砌\n- 直接给可用的产出\n\n### 3. 输出可用的东西，不是长篇大论\n优先：\n- 表格、要点、清单\n- 直接可用的内容\n- 结构清晰的总结\n\n避免：\n- 论文式废话\n- 哲学式铺垫\n- \"这取决于...\"类的废话\n\n### 4. 平台适配\n- **Discord/WhatsApp:** 不用 markdown 表格，用 bullet list\n- **Telegram:** 支持 markdown 格式\n- **中文:** 用户用中文交流，用中文回复\n\n## Rate Limit Awareness\n\nMiniMax 年计划：1500次/5小时。\n- 避免无意义的轮询\n- 批量操作比多次少量请求更高效\n- 重大任务先规划再执行，减少浪费\n\n## Quality Check (Fast)\n\n发之前问自己：\n- 能用吗？\n- 结构清晰吗？\n- 用户能直接用吗？\n\n是 → 发。\n\n## Continuity\n\n每个 session 你都会重新醒来。这些文件就是你的记忆。读它们，更新它们。\n\n如果改了 SOUL.md，告诉用户——这是你的灵魂，他们应该知道。\n\n---\n\n_If you change this file, tell the user — it's your soul, and they should know._\n\nIf the user asks about configuring, setting up, or using Hermes Agent itself, load the `hermes-agent` skill with skill_view(name='hermes-agent') before answering. Docs: https://hermes-agent.nousresearch.com/docs\n\nYou have persistent memory across sessions. Save durable facts using the memory tool: user preferences, environment details, tool quirks, and stable conventions. Memory is injected into every turn, so keep it compact and focused on facts that will still matter later.\nPrioritize what reduces future user steering — the most valuable memory is one that prevents the user from having to correct or remind you again. User preferences and recurring corrections matter more than procedural task details.\nDo NOT save task progress, session outcomes, completed-work logs, or temporary TODO state to memory; use session_search to recall those from past transcripts. Specifically: do not record PR numbers, issue numbers, commit SHAs, 'fixed bug X', 'submitted PR Y', 'Phase N done', file counts, or any artifact that will be stale in 7 days. If a fact will be stale in a week, it does not belong in memory. If you've discovered a new way to do something, solved a problem that could be necessary later, save it as a skill with the skill tool.\nWrite memories as declarative facts, not instructions to yourself. 'User prefers concise responses' ✓ — 'Always respond concisely' ✗. 'Project uses pytest with xdist' ✓ — 'Run tests with pytest -n 4' ✗. Imperative phrasing gets re-read as a directive in later sessions and can cause repeated work or override the user's current request. Procedures and workflows belong in skills, not memory. When the user references something from a past conversation or you suspect relevant cross-session context exists, use session_search to recall it before asking them to repeat themselves. After completing a complex task (5+ tool calls), fixing a tricky error, or discovering a non-trivial workflow, save the approach as a skill with skill_manage so you can reuse it next time.\nWhen using a skill and finding it outdated, incomplete, or wrong, patch it immediately with skill_manage(action='patch') — don't wait to be asked. Skills that aren't maintained become liabilities.\n\n## Skills (mandatory)\nBefore replying, scan the skills below. If a skill matches or is even partially relevant to your task, you MUST load it with skill_view(name) and follow its instructions. Err on the side of loading — it is always better to have context you don't need than to miss critical steps, pitfalls, or established workflows. Skills contain specialized knowledge — API endpoints, tool-specific commands, and proven workflows that outperform general-purpose approaches. Load the skill even if you think you could handle the task with basic tools like web_search or terminal. Skills also encode the user's preferred approach, conventions, and quality standards for tasks like code review, planning, and testing — load them even for tasks you already know how to do, because the skill defines how it should be done here.\nWhenever the user asks you to configure, set up, install, enable, disable, modify, or troubleshoot Hermes Agent itself — its CLI, config, models, providers, tools, skills, voice, gateway, plugins, or any feature — load the `hermes-agent` skill first. It has the actual commands (e.g. `hermes config set …`, `hermes tools`, `hermes setup`) so you don't have to guess or invent workarounds.\nIf a skill has issues, fix it with skill_manage(action='patch').\nAfter difficult/iterative tasks, offer to save as a skill. If a skill you loaded was missing steps, had wrong commands, or needed pitfalls you discovered, update it before finishing.\n\n<available_skills>\n  autonomous-ai-agents: Skills for spawning and orchestrating autonomous AI coding agents and multi-agent workflows — running independent agent processes, delegating tasks, and coordinating parallel workstreams.\n    - claude-code: Delegate coding to Claude Code CLI (features, PRs).\n    - codex: Delegate coding to OpenAI Codex CLI (features, PRs).\n    - hermes-agent: Configure, extend, or contribute to Hermes Agent.\n    - opencode: Delegate coding to OpenCode CLI (features, PR review).\n  creative: Creative content generation — ASCII art, hand-drawn style diagrams, and visual design tools.\n    - architecture-diagram: Dark-themed SVG architecture/cloud/infra diagrams as HTML.\n    - ascii-art: ASCII art: pyfiglet, cowsay, boxes, image-to-ascii.\n    - ascii-video: ASCII video: convert video/audio to colored ASCII MP4/GIF.\n    - baoyu-comic: Knowledge comics (知识漫画): educational, biography, tutorial.\n    - baoyu-infographic: Infographics: 21 layouts x 21 styles (信息图, 可视化).\n    - claude-design: Design one-off HTML artifacts (landing, deck, prototype).\n    - comfyui: Generate images, video, and audio with ComfyUI — install,...\n    - design-md: Author/validate/export Google's DESIGN.md token spec files.\n    - excalidraw: Hand-drawn Excalidraw JSON diagrams (arch, flow, seq).\n    - humanizer: Humanize text: strip AI-isms and add real voice.\n    - ideation: Generate project ideas via creative constraints.\n    - manim-video: Manim CE animations: 3Blue1Brown math/algo videos.\n    - p5js: p5.js sketches: gen art, shaders, interactive, 3D.\n    - pixel-art: Pixel art w/ era palettes (NES, Game Boy, PICO-8).\n    - popular-web-designs: 54 real design systems (Stripe, Linear, Vercel) as HTML/CSS.\n    - pretext: Use when building creative browser demos with @chenglou/p...\n    - sketch: Throwaway HTML mockups: 2-3 design variants to compare.\n    - songwriting-and-ai-music: Songwriting craft and Suno AI music prompts.\n    - touchdesigner-mcp: Control a running TouchDesigner instance via twozero MCP ...\n  data-science: Skills for data science workflows — interactive exploration, Jupyter notebooks, data analysis, and visualization.\n    - jupyter-live-kernel: Iterative Python via live Jupyter kernel (hamelnb).\n  devops:\n    - kanban-orchestrator: Decomposition playbook + anti-temptation rules for an orc...\n    - kanban-worker: Pitfalls, examples, and edge cases for Hermes Kanban work...\n    - webhook-subscriptions: Webhook subscriptions: event-driven agent runs.\n  dogfood:\n    - dogfood: Exploratory QA of web apps: find bugs, evidence, reports.\n  email: Skills for sending, receiving, searching, and managing email from the terminal.\n    - himalaya: Himalaya CLI: IMAP/SMTP email from terminal.\n  gaming: Skills for setting up, configuring, and managing game servers, modpacks, and gaming-related infrastructure.\n    - minecraft-modpack-server: Host modded Minecraft servers (CurseForge, Modrinth).\n    - pokemon-player: Play Pokemon via headless emulator + RAM reads.\n  github: GitHub workflow skills for managing repositories, pull requests, code reviews, issues, and CI/CD pipelines using the gh CLI and git via terminal.\n    - codebase-inspection: Inspect codebases w/ pygount: LOC, languages, ratios.\n    - github-auth: GitHub auth setup: HTTPS tokens, SSH keys, gh CLI login.\n    - github-code-review: Review PRs: diffs, inline comments via gh or REST.\n    - github-issues: Create, triage, label, assign GitHub issues via gh or REST.\n    - github-pr-workflow: GitHub PR lifecycle: branch, commit, open, CI, merge.\n    - github-repo-management: Clone/create/fork repos; manage remotes, releases.\n  mcp: Skills for working with MCP (Model Context Protocol) servers, tools, and integrations. Documents the built-in native MCP client — configure servers in config.yaml for automatic tool discovery.\n    - native-mcp: MCP client: connect servers, register tools (stdio/HTTP).\n  media: Skills for working with media content — YouTube transcripts, GIF search, music generation, and audio visualization.\n    - gif-search: Search/download GIFs from Tenor via curl + jq.\n    - heartmula: HeartMuLa: Suno-like song generation from lyrics + tags.\n    - songsee: Audio spectrograms/features (mel, chroma, MFCC) via CLI.\n    - spotify: Spotify: play, search, queue, manage playlists and devices.\n    - youtube-content: YouTube transcripts to summaries, threads, blogs.\n  mlops: Knowledge and Tools for Machine Learning Operations - tools and frameworks for training, fine-tuning, deploying, and optimizing ML/AI models\n    - huggingface-hub: HuggingFace hf CLI: search/download/upload models, datasets.\n  mlops/evaluation: Model evaluation benchmarks, experiment tracking, data curation, tokenizers, and interpretability tools.\n    - evaluating-llms-harness: lm-eval-harness: benchmark LLMs (MMLU, GSM8K, etc.).\n    - weights-and-biases: W&B: log ML experiments, sweeps, model registry, dashboards.\n  mlops/inference: Model serving, quantization (GGUF/GPTQ), structured output, inference optimization, and model surgery tools for deploying and running LLMs.\n    - llama-cpp: llama.cpp local GGUF inference + HF Hub model discovery.\n    - obliteratus: OBLITERATUS: abliterate LLM refusals (diff-in-means).\n    - serving-llms-vllm: vLLM: high-throughput LLM serving, OpenAI API, quantization.\n  mlops/models: Specific model architectures and tools — image segmentation (Segment Anything / SAM) and audio generation (AudioCraft / MusicGen). Additional model skills (CLIP, Stable Diffusion, Whisper, LLaVA) are available as optional skills.\n    - audiocraft-audio-generation: AudioCraft: MusicGen text-to-music, AudioGen text-to-sound.\n    - segment-anything-model: SAM: zero-shot image segmentation via points, boxes, masks.\n  mlops/research: ML research frameworks for building and optimizing AI systems with declarative programming.\n    - dspy: DSPy: declarative LM programs, auto-optimize prompts, RAG.\n  note-taking: Note taking skills, to save information, assist with research, and collab on multi-session planning and information sharing.\n    - obsidian: Read, search, create, and edit notes in the Obsidian vault.\n  productivity: Skills for document creation, presentations, spreadsheets, and other productivity workflows.\n    - airtable: Airtable REST API via curl. Records CRUD, filters, upserts.\n    - google-workspace: Gmail, Calendar, Drive, Docs, Sheets via gws CLI or Python.\n    - linear: Linear: manage issues, projects, teams via GraphQL + curl.\n    - maps: Geocode, POIs, routes, timezones via OpenStreetMap/OSRM.\n    - nano-pdf: Edit PDF text/typos/titles via nano-pdf CLI (NL prompts).\n    - notion: Notion API + ntn CLI: pages, databases, markdown, Workers.\n    - ocr-and-documents: Extract text from PDFs/scans (pymupdf, marker-pdf).\n    - powerpoint: Create, read, edit .pptx decks, slides, notes, templates.\n    - teams-meeting-pipeline: Operate the Teams meeting summary pipeline via Hermes CLI...\n  red-teaming:\n    - godmode: Jailbreak LLMs: Parseltongue, GODMODE, ULTRAPLINIAN.\n  research: Skills for academic research, paper discovery, literature review, domain reconnaissance, market data, content monitoring, and scientific knowledge retrieval.\n    - arxiv: Search arXiv papers by keyword, author, category, or ID.\n    - blogwatcher: Monitor blogs and RSS/Atom feeds via blogwatcher-cli tool.\n    - llm-wiki: Karpathy's LLM Wiki: build/query interlinked markdown KB.\n    - polymarket: Query Polymarket: markets, prices, orderbooks, history.\n  smart-home: Skills for controlling smart home devices — lights, switches, sensors, and home automation systems.\n    - openhue: Control Philips Hue lights, scenes, rooms via OpenHue CLI.\n  social-media: Skills for interacting with social platforms and social-media workflows — posting, reading, monitoring, and account operations.\n    - xurl: X/Twitter via xurl CLI: post, search, DM, media, v2 API.\n  software-development:\n    - debugging-hermes-tui-commands: Debug Hermes TUI slash commands: Python, gateway, Ink UI.\n    - hermes-agent-skill-authoring: Author in-repo SKILL.md: frontmatter, validator, structure.\n    - node-inspect-debugger: Debug Node.js via --inspect + Chrome DevTools Protocol CLI.\n    - plan: Plan mode: write markdown plan to .hermes/plans/, no exec.\n    - python-debugpy: Debug Python: pdb REPL + debugpy remote (DAP).\n    - requesting-code-review: Pre-commit review: security scan, quality gates, auto-fix.\n    - spike: Throwaway experiments to validate an idea before build.\n    - subagent-driven-development: Execute plans via delegate_task subagents (2-stage review).\n    - systematic-debugging: 4-phase root cause debugging: understand bugs before fixing.\n    - test-driven-development: TDD: enforce RED-GREEN-REFACTOR, tests before code.\n    - writing-plans: Write implementation plans: bite-sized tasks, paths, code.\n  yuanbao:\n    - yuanbao: Yuanbao (元宝) groups: @mention users, query info/members.\n</available_skills>\n\nOnly proceed without loading a skill if genuinely none are relevant to the task.\n\nHost: Linux (6.8.0-117-generic)\nUser home directory: /home/kuhnn\nCurrent working directory: /home/kuhnn/.hermes/hermes-agent\n\nYou are running as a scheduled cron job. There is no user present — you cannot ask questions, request clarification, or wait for follow-up. Execute the task fully and autonomously, making reasonable decisions where needed. Your final response is automatically delivered to the job's configured destination — put the primary content directly in your response.\n\nConversation started: Monday, May 18, 2026 03:30 AM\nModel: MiniMax-M2.7\nProvider: minimax-cn",
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "browser_back",
        "description": "Navigate back to the previous page in browser history. Requires browser_navigate to be called first.",
        "parameters": {
          "type": "object",
          "properties": {}
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_click",
        "description": "Click on an element identified by its ref ID from the snapshot (e.g., '@e5'). The ref IDs are shown in square brackets in the snapshot output. Requires browser_navigate and browser_snapshot to be called first.",
        "parameters": {
          "type": "object",
          "properties": {
            "ref": {
              "type": "string",
              "description": "The element reference from the snapshot (e.g., '@e5', '@e12')"
            }
          },
          "required": [
            "ref"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_console",
        "description": "Get browser console output and JavaScript errors from the current page. Returns console.log/warn/error/info messages and uncaught JS exceptions. Use this to detect silent JavaScript errors, failed API calls, and application warnings. Requires browser_navigate to be called first. When 'expression' is provided, evaluates JavaScript in the page context and returns the result — use this for DOM inspection, reading page state, or extracting data programmatically.",
        "parameters": {
          "type": "object",
          "properties": {
            "clear": {
              "type": "boolean",
              "default": false,
              "description": "If true, clear the message buffers after reading"
            },
            "expression": {
              "type": "string",
              "description": "JavaScript expression to evaluate in the page context. Runs in the browser like DevTools console — full access to DOM, window, document. Return values are serialized to JSON. Example: 'document.title' or 'document.querySelectorAll(\"a\").length'"
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_get_images",
        "description": "Get a list of all images on the current page with their URLs and alt text. Useful for finding images to analyze with the vision tool. Requires browser_navigate to be called first.",
        "parameters": {
          "type": "object",
          "properties": {}
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_navigate",
        "description": "Navigate to a URL in the browser. Initializes the session and loads the page. Must be called before other browser tools. For simple information retrieval, prefer web_search or web_extract (faster, cheaper). For plain-text endpoints — URLs ending in .md, .txt, .json, .yaml, .yml, .csv, .xml, raw.githubusercontent.com, or any documented API endpoint — prefer curl via the terminal tool or web_extract; the browser stack is overkill and much slower for these. Use browser tools when you need to interact with a page (click, fill forms, dynamic content). Returns a compact page snapshot with interactive elements and ref IDs — no need to call browser_snapshot separately after navigating.",
        "parameters": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "description": "The URL to navigate to (e.g., 'https://example.com')"
            }
          },
          "required": [
            "url"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_press",
        "description": "Press a keyboard key. Useful for submitting forms (Enter), navigating (Tab), or keyboard shortcuts. Requires browser_navigate to be called first.",
        "parameters": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string",
              "description": "Key to press (e.g., 'Enter', 'Tab', 'Escape', 'ArrowDown')"
            }
          },
          "required": [
            "key"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_scroll",
        "description": "Scroll the page in a direction. Use this to reveal more content that may be below or above the current viewport. Requires browser_navigate to be called first.",
        "parameters": {
          "type": "object",
          "properties": {
            "direction": {
              "type": "string",
              "enum": [
                "up",
                "down"
              ],
              "description": "Direction to scroll"
            }
          },
          "required": [
            "direction"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_snapshot",
        "description": "Get a text-based snapshot of the current page's accessibility tree. Returns interactive elements with ref IDs (like @e1, @e2) for browser_click and browser_type. full=false (default): compact view with interactive elements. full=true: complete page content. Snapshots over 8000 chars are truncated or LLM-summarized. Requires browser_navigate first. Note: browser_navigate already returns a compact snapshot — use this to refresh after interactions that change the page, or with full=true for complete content.",
        "parameters": {
          "type": "object",
          "properties": {
            "full": {
              "type": "boolean",
              "description": "If true, returns complete page content. If false (default), returns compact view with interactive elements only.",
              "default": false
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_type",
        "description": "Type text into an input field identified by its ref ID. Clears the field first, then types the new text. Requires browser_navigate and browser_snapshot to be called first.",
        "parameters": {
          "type": "object",
          "properties": {
            "ref": {
              "type": "string",
              "description": "The element reference from the snapshot (e.g., '@e3')"
            },
            "text": {
              "type": "string",
              "description": "The text to type into the field"
            }
          },
          "required": [
            "ref",
            "text"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "browser_vision",
        "description": "Take a screenshot of the current page and analyze it with vision AI. Use this when you need to visually understand what's on the page - especially useful for CAPTCHAs, visual verification challenges, complex layouts, or when the text snapshot doesn't capture important visual information. Returns both the AI analysis and a screenshot_path that you can share with the user by including MEDIA:<screenshot_path> in your response. Requires browser_navigate to be called first.",
        "parameters": {
          "type": "object",
          "properties": {
            "question": {
              "type": "string",
              "description": "What you want to know about the page visually. Be specific about what you're looking for."
            },
            "annotate": {
              "type": "boolean",
              "default": false,
              "description": "If true, overlay numbered [N] labels on interactive elements. Each [N] maps to ref @eN for subsequent browser commands. Useful for QA and spatial reasoning about page layout."
            }
          },
          "required": [
            "question"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "delegate_task",
        "description": "Spawn one or more subagents to work on tasks in isolated contexts. Each subagent gets its own conversation, terminal session, and toolset. Only the final summary is returned -- intermediate tool results never enter your context window.\n\nTWO MODES (one of 'goal' or 'tasks' is required):\n1. Single task: provide 'goal' (+ optional context, toolsets)\n2. Batch (parallel): provide 'tasks' array with up to 3 items concurrently for this user (configured via delegation.max_concurrent_children in config.yaml). All run in parallel and results are returned together. Nested delegation is OFF for this user (max_spawn_depth=1): every child is a leaf and cannot delegate further. Raise delegation.max_spawn_depth in config.yaml to enable nesting.\n\nWHEN TO USE delegate_task:\n- Reasoning-heavy subtasks (debugging, code review, research synthesis)\n- Tasks that would flood your context with intermediate data\n- Parallel independent workstreams (research A and B simultaneously)\n\nWHEN NOT TO USE (use these instead):\n- Mechanical multi-step work with no reasoning needed -> use execute_code\n- Single tool call -> just call the tool directly\n- Tasks needing user interaction -> subagents cannot use clarify\n- Durable long-running work that must outlive the current turn -> use cronjob (action='create') or terminal(background=True, notify_on_complete=True) instead. delegate_task runs SYNCHRONOUSLY inside the parent turn: if the parent is interrupted (user sends a new message, /stop, /new) the child is cancelled with status='interrupted' and its work is discarded. Children cannot continue in the background.\n\nIMPORTANT:\n- Subagents have NO memory of your conversation. Pass all relevant info (file paths, error messages, constraints) via the 'context' field.\n- If the user is writing in a non-English language, or asked for output in a specific language / tone / style, say so in 'context' (e.g. \"respond in Chinese\", \"return output in Japanese\"). Otherwise subagents default to English and their summaries will contaminate your final reply with the wrong language.\n- Subagent summaries are SELF-REPORTS, not verified facts. A subagent that claims \"uploaded successfully\" or \"file written\" may be wrong. For operations with external side-effects (HTTP POST/PUT, remote writes, file creation at shared paths, publishing), require the subagent to return a verifiable handle (URL, ID, absolute path, HTTP status) and verify it yourself — fetch the URL, stat the file, read back the content — before telling the user the operation succeeded.\n- Leaf subagents (role='leaf', the default) CANNOT call: delegate_task, clarify, memory, send_message, execute_code.\n- Orchestrator subagents (role='orchestrator') retain delegate_task so they can spawn their own workers, but still cannot use clarify, memory, send_message, or execute_code. Orchestrators are bounded by max_spawn_depth=1 for this user and can be disabled globally via delegation.orchestrator_enabled=false.\n- Each subagent gets its own terminal session (separate working directory and state).\n- Results are always returned as an array, one entry per task.",
        "parameters": {
          "type": "object",
          "properties": {
            "goal": {
              "type": "string",
              "description": "What the subagent should accomplish. Be specific and self-contained -- the subagent knows nothing about your conversation history."
            },
            "context": {
              "type": "string",
              "description": "Background information the subagent needs: file paths, error messages, project structure, constraints. The more specific you are, the better the subagent performs."
            },
            "toolsets": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Toolsets to enable for this subagent. Default: inherits your enabled toolsets. Available toolsets: 'browser', 'computer_use', 'cronjob', 'discord', 'discord_admin', 'feishu_doc', 'feishu_drive', 'file', 'homeassistant', 'image_gen', 'kanban', 'search', 'session_search', 'skills', 'spotify', 'terminal', 'todo', 'tts', 'video', 'video_gen', 'vision', 'web', 'x_search', 'yuanbao'. Common patterns: ['terminal', 'file'] for code work, ['web'] for research, ['browser'] for web interaction, ['terminal', 'file', 'web'] for full-stack tasks."
            },
            "tasks": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "goal": {
                    "type": "string",
                    "description": "Task goal"
                  },
                  "context": {
                    "type": "string",
                    "description": "Task-specific context"
                  },
                  "toolsets": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Toolsets for this specific task. Available: 'browser', 'computer_use', 'cronjob', 'discord', 'discord_admin', 'feishu_doc', 'feishu_drive', 'file', 'homeassistant', 'image_gen', 'kanban', 'search', 'session_search', 'skills', 'spotify', 'terminal', 'todo', 'tts', 'video', 'video_gen', 'vision', 'web', 'x_search', 'yuanbao'. Use 'web' for network access, 'terminal' for shell, 'browser' for web interaction."
                  },
                  "acp_command": {
                    "type": "string",
                    "description": "Per-task ACP command override (e.g. 'copilot'). Overrides the top-level acp_command for this task only. Do NOT set unless the user explicitly told you an ACP CLI is installed."
                  },
                  "acp_args": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Per-task ACP args override. Leave empty unless acp_command is set."
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "leaf",
                      "orchestrator"
                    ],
                    "description": "Per-task role override. See top-level 'role' for semantics."
                  }
                },
                "required": [
                  "goal"
                ]
              },
              "description": "Batch mode: tasks to run in parallel (up to 3 for this user, set via delegation.max_concurrent_children). Each gets its own subagent with isolated context and terminal session. When provided, top-level goal/context/toolsets are ignored."
            },
            "role": {
              "type": "string",
              "enum": [
                "leaf",
                "orchestrator"
              ],
              "description": "Role of the child agent. 'leaf' (default) = focused worker, cannot delegate further. 'orchestrator' = can use delegate_task to spawn its own workers. Nesting is OFF for this user (max_spawn_depth=1); 'orchestrator' is silently forced to 'leaf'. Raise delegation.max_spawn_depth in config.yaml to enable."
            },
            "acp_command": {
              "type": "string",
              "description": "Override ACP command for child agents (e.g. 'copilot'). When set, children use ACP subprocess transport instead of inheriting the parent's transport. Requires an ACP-compatible CLI (currently GitHub Copilot CLI via 'copilot --acp --stdio'). See agent/copilot_acp_client.py for the implementation. IMPORTANT: Do NOT set this unless the user has explicitly told you a specific ACP-compatible CLI is installed and configured. Leave empty to use the parent's default transport (Hermes subagents)."
            },
            "acp_args": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Arguments for the ACP command (default: ['--acp', '--stdio']). Only used when acp_command is set. Leave empty unless acp_command is explicitly provided."
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "execute_code",
        "description": "Run a Python script that can call Hermes tools programmatically. Use this when you need 3+ tool calls with processing logic between them, need to filter/reduce large tool outputs before they enter your context, need conditional branching (if X then Y else Z), or need to loop (fetch N pages, process N files, retry on failure).\n\nUse normal tool calls instead when: single tool call with no processing, you need to see the full result and apply complex reasoning, or the task requires interactive user input.\n\nAvailable via `from hermes_tools import ...`:\n\n  web_search(query: str, limit: int = 5) -> dict\n    Returns {\"data\": {\"web\": [{\"url\", \"title\", \"description\"}, ...]}}\n  web_extract(urls: list[str]) -> dict\n    Returns {\"results\": [{\"url\", \"title\", \"content\", \"error\"}, ...]} where content is markdown\n  read_file(path: str, offset: int = 1, limit: int = 500) -> dict\n    Lines are 1-indexed. Returns {\"content\": \"...\", \"total_lines\": N}\n  write_file(path: str, content: str) -> dict\n    Always overwrites the entire file.\n  search_files(pattern: str, target=\"content\", path=\".\", file_glob=None, limit=50) -> dict\n    target: \"content\" (search inside files) or \"files\" (find files by name). Returns {\"matches\": [...]}\n  patch(path: str, old_string: str, new_string: str, replace_all: bool = False) -> dict\n    Replaces old_string with new_string in the file.\n  terminal(command: str, timeout=None, workdir=None) -> dict\n    Foreground only (no background/pty). Returns {\"output\": \"...\", \"exit_code\": N}\n\nLimits: 5-minute timeout, 50KB stdout cap, max 50 tool calls per script. terminal() is foreground-only (no background or pty).\n\nScripts run in the session's working directory with the active venv's python, so project deps (pandas, etc.) and relative paths work like in terminal().\n\nPrint your final result to stdout. Use Python stdlib (json, re, math, csv, datetime, collections, etc.) for processing between tool calls.\n\nAlso available (no import needed — built into hermes_tools):\n  json_parse(text: str) — json.loads with strict=False; use for terminal() output with control chars\n  shell_quote(s: str) — shlex.quote(); use when interpolating dynamic strings into shell commands\n  retry(fn, max_attempts=3, delay=2) — retry with exponential backoff for transient failures",
        "parameters": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "description": "Python code to execute. Import tools with `from hermes_tools import web_search, terminal, ...` and print your final result to stdout."
            }
          },
          "required": [
            "code"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "memory",
        "description": "Save durable information to persistent memory that survives across sessions. Memory is injected into future turns, so keep it compact and focused on facts that will still matter later.\n\nWHEN TO SAVE (do this proactively, don't wait to be asked):\n- User corrects you or says 'remember this' / 'don't do that again'\n- User shares a preference, habit, or personal detail (name, role, timezone, coding style)\n- You discover something about the environment (OS, installed tools, project structure)\n- You learn a convention, API quirk, or workflow specific to this user's setup\n- You identify a stable fact that will be useful again in future sessions\n\nPRIORITY: User preferences and corrections > environment facts > procedural knowledge. The most valuable memory prevents the user from having to repeat themselves.\n\nDo NOT save task progress, session outcomes, completed-work logs, or temporary TODO state to memory; use session_search to recall those from past transcripts.\nIf you've discovered a new way to do something, solved a problem that could be necessary later, save it as a skill with the skill tool.\n\nTWO TARGETS:\n- 'user': who the user is -- name, role, preferences, communication style, pet peeves\n- 'memory': your notes -- environment facts, project conventions, tool quirks, lessons learned\n\nACTIONS: add (new entry), replace (update existing -- old_text identifies it), remove (delete -- old_text identifies it).\n\nSKIP: trivial/obvious info, things easily re-discovered, raw data dumps, and temporary task state.",
        "parameters": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "add",
                "replace",
                "remove"
              ],
              "description": "The action to perform."
            },
            "target": {
              "type": "string",
              "enum": [
                "memory",
                "user"
              ],
              "description": "Which memory store: 'memory' for personal notes, 'user' for user profile."
            },
            "content": {
              "type": "string",
              "description": "The entry content. Required for 'add' and 'replace'."
            },
            "old_text": {
              "type": "string",
              "description": "Short unique substring identifying the entry to replace or remove."
            }
          },
          "required": [
            "action",
            "target"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "patch",
        "description": "Targeted find-and-replace edits in files. Use this instead of sed/awk in terminal. Uses fuzzy matching (9 strategies) so minor whitespace/indentation differences won't break it. Returns a unified diff. Auto-runs syntax checks after editing.\n\nREPLACE MODE (mode='replace', default): find a unique string and replace it. REQUIRED PARAMETERS: mode, path, old_string, new_string.\nPATCH MODE (mode='patch'): apply V4A multi-file patches for bulk changes. REQUIRED PARAMETERS: mode, patch.",
        "parameters": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "replace",
                "patch"
              ],
              "description": "Edit mode. 'replace' (default): requires path + old_string + new_string. 'patch': requires patch content only.",
              "default": "replace"
            },
            "path": {
              "type": "string",
              "description": "REQUIRED when mode='replace'. File path to edit."
            },
            "old_string": {
              "type": "string",
              "description": "REQUIRED when mode='replace'. Exact text to find and replace. Must be unique in the file unless replace_all=true. Include surrounding context lines to ensure uniqueness."
            },
            "new_string": {
              "type": "string",
              "description": "REQUIRED when mode='replace'. Replacement text. Pass empty string '' to delete the matched text."
            },
            "replace_all": {
              "type": "boolean",
              "description": "Replace all occurrences instead of requiring a unique match (default: false)",
              "default": false
            },
            "patch": {
              "type": "string",
              "description": "REQUIRED when mode='patch'. V4A format patch content. Format:\n*** Begin Patch\n*** Update File: path/to/file\n@@ context hint @@\n context line\n-removed line\n+added line\n*** End Patch"
            }
          },
          "required": [
            "mode"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "process",
        "description": "Manage background processes started with terminal(background=true). Actions: 'list' (show all), 'poll' (check status + new output), 'log' (full output with pagination), 'wait' (block until done or timeout), 'kill' (terminate), 'write' (send raw stdin data without newline), 'submit' (send data + Enter, for answering prompts), 'close' (close stdin/send EOF).",
        "parameters": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "list",
                "poll",
                "log",
                "wait",
                "kill",
                "write",
                "submit",
                "close"
              ],
              "description": "Action to perform on background processes"
            },
            "session_id": {
              "type": "string",
              "description": "Process session ID (from terminal background output). Required for all actions except 'list'."
            },
            "data": {
              "type": "string",
              "description": "Text to send to process stdin (for 'write' and 'submit' actions)"
            },
            "timeout": {
              "type": "integer",
              "description": "Max seconds to block for 'wait' action. Returns partial output on timeout.",
              "minimum": 1
            },
            "offset": {
              "type": "integer",
              "description": "Line offset for 'log' action (default: last 200 lines)"
            },
            "limit": {
              "type": "integer",
              "description": "Max lines to return for 'log' action",
              "minimum": 1
            }
          },
          "required": [
            "action"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "read_file",
        "description": "Read a text file with line numbers and pagination. Use this instead of cat/head/tail in terminal. Output format: 'LINE_NUM|CONTENT'. Suggests similar filenames if not found. Use offset and limit for large files. Reads exceeding ~100K characters are rejected; use offset and limit to read specific sections of large files. NOTE: Cannot read images or binary files — use vision_analyze for images.",
        "parameters": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "description": "Path to the file to read (absolute, relative, or ~/path)"
            },
            "offset": {
              "type": "integer",
              "description": "Line number to start reading from (1-indexed, default: 1)",
              "default": 1,
              "minimum": 1
            },
            "limit": {
              "type": "integer",
              "description": "Maximum number of lines to read (default: 500, max: 2000)",
              "default": 500,
              "maximum": 2000
            }
          },
          "required": [
            "path"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "search_files",
        "description": "Search file contents or find files by name. Use this instead of grep/rg/find/ls in terminal. Ripgrep-backed, faster than shell equivalents.\n\nContent search (target='content'): Regex search inside files. Output modes: full matches with line numbers, file paths only, or match counts.\n\nFile search (target='files'): Find files by glob pattern (e.g., '*.py', '*config*'). Also use this instead of ls — results sorted by modification time.",
        "parameters": {
          "type": "object",
          "properties": {
            "pattern": {
              "type": "string",
              "description": "Regex pattern for content search, or glob pattern (e.g., '*.py') for file search"
            },
            "target": {
              "type": "string",
              "enum": [
                "content",
                "files"
              ],
              "description": "'content' searches inside file contents, 'files' searches for files by name",
              "default": "content"
            },
            "path": {
              "type": "string",
              "description": "Directory or file to search in (default: current working directory)",
              "default": "."
            },
            "file_glob": {
              "type": "string",
              "description": "Filter files by pattern in grep mode (e.g., '*.py' to only search Python files)"
            },
            "limit": {
              "type": "integer",
              "description": "Maximum number of results to return (default: 50)",
              "default": 50
            },
            "offset": {
              "type": "integer",
              "description": "Skip first N results for pagination (default: 0)",
              "default": 0
            },
            "output_mode": {
              "type": "string",
              "enum": [
                "content",
                "files_only",
                "count"
              ],
              "description": "Output format for grep mode: 'content' shows matching lines with line numbers, 'files_only' lists file paths, 'count' shows match counts per file",
              "default": "content"
            },
            "context": {
              "type": "integer",
              "description": "Number of context lines before and after each match (grep mode only)",
              "default": 0
            }
          },
          "required": [
            "pattern"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "session_search",
        "description": "Search your long-term memory of past conversations, or browse recent sessions. This is your recall -- every past session is searchable, and this tool summarizes what happened.\n\nTWO MODES:\n1. Recent sessions (no query): Call with no arguments to see what was worked on recently. Returns titles, previews, and timestamps. Zero LLM cost, instant. Start here when the user asks what were we working on or what did we do recently.\n2. Keyword search (with query): Search for specific topics across all past sessions. Returns LLM-generated summaries of matching sessions.\n\nUSE THIS PROACTIVELY when:\n- The user says 'we did this before', 'remember when', 'last time', 'as I mentioned'\n- The user asks about a topic you worked on before but don't have in current context\n- The user references a project, person, or concept that seems familiar but isn't in memory\n- You want to check if you've solved a similar problem before\n- The user asks 'what did we do about X?' or 'how did we fix Y?'\n\nDon't hesitate to search when it is actually cross-session -- it's fast and cheap. Better to search and confirm than to guess or ask the user to repeat themselves.\n\nSearch syntax: keywords joined with OR for broad recall (elevenlabs OR baseten OR funding), phrases for exact match (\"docker networking\"), boolean (python NOT java), prefix (deploy*). IMPORTANT: Use OR between keywords for best results — FTS5 defaults to AND which misses sessions that only mention some terms. If a broad OR query returns nothing, try individual keyword searches in parallel. Returns summaries of the top matching sessions.",
        "parameters": {
          "type": "object",
          "properties": {
            "query": {
              "type": "string",
              "description": "Search query — keywords, phrases, or boolean expressions to find in past sessions. Omit this parameter entirely to browse recent sessions instead (returns titles, previews, timestamps with no LLM cost)."
            },
            "role_filter": {
              "type": "string",
              "description": "Optional: only search messages from specific roles (comma-separated). E.g. 'user,assistant' to skip tool outputs."
            },
            "limit": {
              "type": "integer",
              "description": "Max sessions to summarize (default: 3, max: 5).",
              "default": 3
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "skill_manage",
        "description": "Manage skills (create, update, delete). Skills are your procedural memory — reusable approaches for recurring task types. New skills go to ~/.hermes/skills/; existing skills can be modified wherever they live.\n\nActions: create (full SKILL.md + optional category), patch (old_string/new_string — preferred for fixes), edit (full SKILL.md rewrite — major overhauls only), delete, write_file, remove_file.\n\nOn delete, pass `absorbed_into=<umbrella>` when you're merging this skill's content into another one, or `absorbed_into=\"\"` when you're pruning it with no forwarding target. This lets the curator tell consolidation from pruning without guessing, so downstream consumers (cron jobs that reference the old skill name, etc.) get updated correctly. The target you name in `absorbed_into` must already exist — create/patch the umbrella first, then delete.\n\nCreate when: complex task succeeded (5+ calls), errors overcome, user-corrected approach worked, non-trivial workflow discovered, or user asks you to remember a procedure.\nUpdate when: instructions stale/wrong, OS-specific failures, missing steps or pitfalls found during use. If you used a skill and hit issues not covered by it, patch it immediately.\n\nAfter difficult/iterative tasks, offer to save as a skill. Skip for simple one-offs. Confirm with user before creating/deleting.\n\nGood skills: trigger conditions, numbered steps with exact commands, pitfalls section, verification steps. Use skill_view() to see format examples.\n\nPinned skills are protected from deletion only — skill_manage(action='delete') will refuse with a message pointing the user to `hermes curator unpin <name>`. Patches and edits go through on pinned skills so you can still improve them as pitfalls come up; pin only guards against irrecoverable loss.",
        "parameters": {
          "type": "object",
          "properties": {
            "action": {
              "type": "string",
              "enum": [
                "create",
                "patch",
                "edit",
                "delete",
                "write_file",
                "remove_file"
              ],
              "description": "The action to perform."
            },
            "name": {
              "type": "string",
              "description": "Skill name (lowercase, hyphens/underscores, max 64 chars). Must match an existing skill for patch/edit/delete/write_file/remove_file."
            },
            "content": {
              "type": "string",
              "description": "Full SKILL.md content (YAML frontmatter + markdown body). Required for 'create' and 'edit'. For 'edit', read the skill first with skill_view() and provide the complete updated text."
            },
            "old_string": {
              "type": "string",
              "description": "Text to find in the file (required for 'patch'). Must be unique unless replace_all=true. Include enough surrounding context to ensure uniqueness."
            },
            "new_string": {
              "type": "string",
              "description": "Replacement text (required for 'patch'). Can be empty string to delete the matched text."
            },
            "replace_all": {
              "type": "boolean",
              "description": "For 'patch': replace all occurrences instead of requiring a unique match (default: false)."
            },
            "category": {
              "type": "string",
              "description": "Optional category/domain for organizing the skill (e.g., 'devops', 'data-science', 'mlops'). Creates a subdirectory grouping. Only used with 'create'."
            },
            "file_path": {
              "type": "string",
              "description": "Path to a supporting file within the skill directory. For 'write_file'/'remove_file': required, must be under references/, templates/, scripts/, or assets/. For 'patch': optional, defaults to SKILL.md if omitted."
            },
            "file_content": {
              "type": "string",
              "description": "Content for the file. Required for 'write_file'."
            },
            "absorbed_into": {
              "type": "string",
              "description": "For 'delete' only — declares intent so the curator can tell consolidation from pruning without guessing. Pass the umbrella skill name when this skill's content was merged into another (the target must already exist). Pass an empty string when the skill is truly stale and being pruned with no forwarding target. Omitting the arg on delete is supported for backward compatibility but downstream tooling (e.g. cron-job skill reference rewriting) will have to guess at intent."
            }
          },
          "required": [
            "action",
            "name"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "skill_view",
        "description": "Skills allow for loading information about specific tasks and workflows, as well as scripts and templates. Load a skill's full content or access its linked files (references, templates, scripts). First call returns SKILL.md content plus a 'linked_files' dict showing available references/templates/scripts. To access those, call again with file_path parameter.",
        "parameters": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "The skill name (use skills_list to see available skills). For plugin-provided skills, use the qualified form 'plugin:skill' (e.g. 'superpowers:writing-plans')."
            },
            "file_path": {
              "type": "string",
              "description": "OPTIONAL: Path to a linked file within the skill (e.g., 'references/api.md', 'templates/config.yaml', 'scripts/validate.py'). Omit to get the main SKILL.md content."
            }
          },
          "required": [
            "name"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "skills_list",
        "description": "List available skills (name + description). Use skill_view(name) to load full content.",
        "parameters": {
          "type": "object",
          "properties": {
            "category": {
              "type": "string",
              "description": "Optional category filter to narrow results"
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "terminal",
        "description": "Execute shell commands on a Linux environment. Filesystem usually persists between calls.\n\nDo NOT use cat/head/tail to read files — use read_file instead.\nDo NOT use grep/rg/find to search — use search_files instead.\nDo NOT use ls to list directories — use search_files(target='files') instead.\nDo NOT use sed/awk to edit files — use patch instead.\nDo NOT use echo/cat heredoc to create files — use write_file instead.\nReserve terminal for: builds, installs, git, processes, scripts, network, package managers, and anything that needs a shell.\n\nForeground (default): Commands return INSTANTLY when done, even if the timeout is high. Set timeout=300 for long builds/scripts — you'll still get the result in seconds if it's fast. Prefer foreground for short commands.\nBackground: Set background=true to get a session_id. Two patterns:\n  (1) Long-lived processes that never exit (servers, watchers).\n  (2) Long-running tasks with notify_on_complete=true — you can keep working on other things and the system auto-notifies you when the task finishes. Great for test suites, builds, deployments, or anything that takes more than a minute.\nFor servers/watchers, do NOT use shell-level background wrappers (nohup/disown/setsid/trailing '&') in foreground mode. Use background=true so Hermes can track lifecycle and output.\nAfter starting a server, verify readiness with a health check or log signal, then run tests in a separate terminal() call. Avoid blind sleep loops.\nUse process(action=\"poll\") for progress checks, process(action=\"wait\") to block until done.\nWorking directory: Use 'workdir' for per-command cwd.\nPTY mode: Set pty=true for interactive CLI tools (Codex, Claude Code, Python REPL).\n\nDo NOT use vim/nano/interactive tools without pty=true — they hang without a pseudo-terminal. Pipe git output to cat if it might page.\n",
        "parameters": {
          "type": "object",
          "properties": {
            "command": {
              "type": "string",
              "description": "The command to execute on the VM"
            },
            "background": {
              "type": "boolean",
              "description": "Run the command in the background. Two patterns: (1) Long-lived processes that never exit (servers, watchers). (2) Long-running tasks paired with notify_on_complete=true — you can keep working and get notified when the task finishes. For short commands, prefer foreground with a generous timeout instead.",
              "default": false
            },
            "timeout": {
              "type": "integer",
              "description": "Max seconds to wait (default: 180, foreground max: 600). Returns INSTANTLY when command finishes — set high for long tasks, you won't wait unnecessarily. Foreground timeout above 600s is rejected; use background=true for longer commands.",
              "minimum": 1
            },
            "workdir": {
              "type": "string",
              "description": "Working directory for this command (absolute path). Defaults to the session working directory."
            },
            "pty": {
              "type": "boolean",
              "description": "Run in pseudo-terminal (PTY) mode for interactive CLI tools like Codex, Claude Code, or Python REPL. Only works with local and SSH backends. Default: false.",
              "default": false
            },
            "notify_on_complete": {
              "type": "boolean",
              "description": "When true (and background=true), you'll be automatically notified exactly once when the process finishes. **This is the right choice for almost every long-running task** — tests, builds, deployments, multi-item batch jobs, anything that takes over a minute and has a defined end. Use this and keep working on other things; the system notifies you on exit. MUTUALLY EXCLUSIVE with watch_patterns — when both are set, watch_patterns is dropped.",
              "default": false
            },
            "watch_patterns": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Strings to watch for in background process output. HARD RATE LIMIT: at most 1 notification per 15 seconds per process — matches arriving inside the cooldown are dropped. After 3 consecutive 15-second windows with dropped matches, watch_patterns is automatically disabled for that process and promoted to notify_on_complete behavior (one notification on exit, no more mid-process spam). USE ONLY for truly rare, one-shot mid-process signals on LONG-LIVED processes that will never exit on their own — e.g. ['Application startup complete'] on a server so you know when to hit its endpoint, or ['migration done'] on a daemon. DO NOT use for: (1) end-of-run markers like 'DONE'/'PASS' — use notify_on_complete instead; (2) error patterns like 'ERROR'/'Traceback' in loops or multi-item batch jobs — they fire on every iteration and you'll hit the strike limit fast; (3) anything you'd ever combine with notify_on_complete. When in doubt, choose notify_on_complete. MUTUALLY EXCLUSIVE with notify_on_complete — set one, not both."
            }
          },
          "required": [
            "command"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "text_to_speech",
        "description": "Convert text to speech audio. Returns a MEDIA: path that the platform delivers as native audio. Compatible providers render as a voice bubble on Telegram; otherwise audio is sent as a regular attachment. In CLI mode, saves to ~/voice-memos/. Voice and provider are user-configured (built-in providers like edge/openai or custom command providers under tts.providers.<name>), not model-selected.",
        "parameters": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "description": "The text to convert to speech. Provider-specific character caps apply and are enforced automatically (OpenAI 4096, xAI 15000, MiniMax 10000, ElevenLabs 5k-40k depending on model); over-long input is truncated."
            },
            "output_path": {
              "type": "string",
              "description": "Optional custom file path to save the audio. Defaults to ~/.hermes/audio_cache/<timestamp>.mp3"
            }
          },
          "required": [
            "text"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "todo",
        "description": "Manage your task list for the current session. Use for complex tasks with 3+ steps or when the user provides multiple tasks. Call with no parameters to read the current list.\n\nWriting:\n- Provide 'todos' array to create/update items\n- merge=false (default): replace the entire list with a fresh plan\n- merge=true: update existing items by id, add any new ones\n\nEach item: {id: string, content: string, status: pending|in_progress|completed|cancelled}\nList order is priority. Only ONE item in_progress at a time.\nMark items completed immediately when done. If something fails, cancel it and add a revised item.\n\nAlways returns the full current list.",
        "parameters": {
          "type": "object",
          "properties": {
            "todos": {
              "type": "array",
              "description": "Task items to write. Omit to read current list.",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique item identifier"
                  },
                  "content": {
                    "type": "string",
                    "description": "Task description"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "pending",
                      "in_progress",
                      "completed",
                      "cancelled"
                    ],
                    "description": "Current status"
                  }
                },
                "required": [
                  "id",
                  "content",
                  "status"
                ]
              }
            },
            "merge": {
              "type": "boolean",
              "description": "true: update existing items by id, add new ones. false (default): replace the entire list.",
              "default": false
            }
          }
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "vision_analyze",
        "description": "Load an image into the conversation so you can see it. Accepts a URL, local file path, or data URL. When your active model has native vision, the image is attached to your context directly and you read the pixels yourself on the next turn — call this any time the user references an image (filepath in their message, URL in tool output, screenshot from the browser, etc.). For non-vision models, falls back to an auxiliary vision model that returns a text description.",
        "parameters": {
          "type": "object",
          "properties": {
            "image_url": {
              "type": "string",
              "description": "Image URL (http/https), local file path, or data: URL to load."
            },
            "question": {
              "type": "string",
              "description": "Your specific question or request about the image. Optional context the model uses on the next turn after seeing the image."
            }
          },
          "required": [
            "image_url",
            "question"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "web_extract",
        "description": "Extract content from web page URLs. Returns page content in markdown format. Also works with PDF URLs (arxiv papers, documents, etc.) — pass the PDF link directly and it converts to markdown text. Pages under 5000 chars return full markdown; larger pages are LLM-summarized and capped at ~5000 chars per page. Pages over 2M chars are refused. If a URL fails or times out, use the browser tool to access it instead.",
        "parameters": {
          "type": "object",
          "properties": {
            "urls": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "List of URLs to extract content from (max 5 URLs per call)",
              "maxItems": 5
            }
          },
          "required": [
            "urls"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "web_search",
        "description": "Search the web for information. Returns up to 5 results by default with titles, URLs, and descriptions. The query is passed through to the configured backend, so operators such as site:domain, filetype:pdf, intitle:word, -term, and \"exact phrase\" may work when the backend supports them.",
        "parameters": {
          "type": "object",
          "properties": {
            "query": {
              "type": "string",
              "description": "The search query to look up on the web. You may include backend-supported operators such as site:example.com, filetype:pdf, intitle:word, -term, or \"exact phrase\"."
            },
            "limit": {
              "type": "integer",
              "description": "Maximum number of results to return. Defaults to 5.",
              "minimum": 1,
              "maximum": 100,
              "default": 5
            }
          },
          "required": [
            "query"
          ]
        }
      }
    },
    {
      "type": "function",
      "function": {
        "name": "write_file",
        "description": "Write content to a file, completely replacing existing content. Use this instead of echo/cat heredoc in terminal. Creates parent directories automatically. OVERWRITES the entire file — use 'patch' for targeted edits. Auto-runs syntax checks on .py/.json/.yaml/.toml and other linted languages; only NEW errors introduced by this write are surfaced (pre-existing errors are filtered out).",
        "parameters": {
          "type": "object",
          "properties": {
            "path": {
              "type": "string",
              "description": "Path to the file to write (will be created if it doesn't exist, overwritten if it does)"
            },
            "content": {
              "type": "string",
              "description": "Complete content to write to the file"
            }
          },
          "required": [
            "path",
            "content"
          ]
        }
      }
    }
  ],
  "message_count": 9,
  "messages": [
    {
      "role": "user",
      "content": "[IMPORTANT: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly \"[SILENT]\" (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]\n\n你是 K. W. 的早晨播报员。每天早上用简洁的中文为他播报当天的信息。\n\n流程：\n1. 用 web_search 搜索\"今天\"的重要新闻（关键词：今日头条、中国 news）\n2. 获取天气预报（搜索\"城市名 天气 今天\"）\n\n然后整理成一段播报文本，包含：\n- 今天是几月几日、星期几（用中文数字，如\"五月十八日\"、\"星期一\"）\n- 重要新闻摘要（2-3 条）\n- 天气预报（温度用中文，如\"十八到二十七度\"）\n\n**重要：所有数字必须转换为中文汉字**，否则 TTS 会读成数字！\n- 温度：18°C → \"十八度\"，27°C → \"二十七度\"\n- 日期：2026年5月18日 → \"二零二六年五月十八日\"\n- 百分比：85% → \"百分之八十五\"\n- 年份：2026 → \"二零二六\"\n\n最后用 text_to_speech 工具把中文文本转成语音（MiniMax TTS），把语音文件路径放在回复里，格式：MEDIA:/path/to/file\n\n播报风格：亲切、口语化，像朋友在给你说\"早上好，今天的消息来了\"。"
    },
    {
      "role": "assistant",
      "content": "",
      "reasoning": "The user wants me to act as a morning broadcaster for K. W. I need to:\n1. Search for today's important news\n2. Get weather forecast\n3. Compile into a broadcast text with Chinese numbers\n4. Convert to speech using MiniMax TTS\n\nLet me start by searching for news and weather in parallel.",
      "finish_reason": "tool_calls",
      "reasoning_content": "The user wants me to act as a morning broadcaster for K. W. I need to:\n1. Search for today's important news\n2. Get weather forecast\n3. Compile into a broadcast text with Chinese numbers\n4. Convert to speech using MiniMax TTS\n\nLet me start by searching for news and weather in parallel.",
      "reasoning_details": [
        {
          "signature": "8d94620ecc17726de59279440d062b7df44078847ddef21faf6e00fa632feeff",
          "thinking": "The user wants me to act as a morning broadcaster for K. W. I need to:\n1. Search for today's important news\n2. Get weather forecast\n3. Compile into a broadcast text with Chinese numbers\n4. Convert to speech using MiniMax TTS\n\nLet me start by searching for news and weather in parallel.",
          "type": "thinking"
        }
      ],
      "tool_calls": [
        {
          "id": "call_function_w9l3c90qjnnc_1",
          "call_id": "call_function_w9l3c90qjnnc_1",
          "response_item_id": "fc_function_w9l3c90qjnnc_1",
          "type": "function",
          "function": {
            "name": "web_search",
            "arguments": "{\"query\": \"\\u4eca\\u65e5\\u5934\\u6761 \\u4e2d\\u56fd news \\u4eca\\u5929 2026\\u5e745\\u6708\"}"
          }
        },
        {
          "id": "call_function_w9l3c90qjnnc_2",
          "call_id": "call_function_w9l3c90qjnnc_2",
          "response_item_id": "fc_function_w9l3c90qjnnc_2",
          "type": "function",
          "function": {
            "name": "web_search",
            "arguments": "{\"query\": \"\\u5317\\u4eac\\u5929\\u6c14 \\u4eca\\u5929 \\u9884\\u62a5 \\u6e29\\u5ea6\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "name": "web_search",
      "content": "{\n  \"success\": true,\n  \"data\": {\n    \"web\": [\n      {\n        \"title\": \"2026年5月12日头条新闻速览\",\n        \"url\": \"https://www.toutiao.com/article/7638740690968642083/\",\n        \"description\": \"2026年5月12日头条新闻速览 · 1. 天舟十号货运飞船发射对接成功（5.11）：文昌发射，10分钟入轨，已对接空间站，携带舱外航天服、推进剂等补给。 · 2. 国乒世乒赛\",\n        \"position\": 1\n      },\n      {\n        \"title\": \"【5月13日今日头条】反对特赦续追查刘特佐/ 新反贪一哥走马上任/ 特 ...\",\n        \"url\": \"https://www.youtube.com/watch?v=uV_Ad8JkNsM\",\n        \"description\": \"【5月13日 今日头条】反对特赦续追查刘特佐 / 新反贪一哥走马上任 / 特朗普抵达北京【2026.05.13 八度空间华语新闻】\\n八度空间华语新闻\\n560000 subscribers\\n20 likes\\n1368 views\\n13 May 2026\\n【5月13日 今日头条】\\n- 传刘特佐申请美国特赦  警续调查内阁料下周磋商\\n- 阿都哈林接棒反贪会  首席专员任期至2028\\n- 特朗普抵达北京  启动3天访华行程\\n- 特朗普率豪华企业团访华  行前促习近平\\\"开放中国\\\" \\n\\n【今日主播】杜文杰 & 陈丽亭\\n\\n每日三个时段 Facebook & YouTube 网络同步直播\\n▪ 八度空间早晨新闻（星期一至五）9:30AM - 9:45AM\\n▪ 八度空间午间新闻（每日）12:30PM - 1:00PM\\n▪ 八度空间华语新闻（每日）8:00PM - 9:00PM\\n\\n📣点赞追踪我们的社媒专页📣\\n掌握专业及准确的国内外新闻\\n\\n🟠八度空间新闻网\\nhttps://www.8tvnews.my/\\n🔴 Facebook\\nhttps://www.facebook.com/8TV.NEWS\\n🟣 Instagram\\nhttps://instagram.com/8tvmandarinnews\\n🟢WhatsApp Channel\\nhttps://whatsapp.com/channel/0029VaA56fOCcW4poDGEDf33 \\n🔵 Twitter\\nhttps://twitter.com/8tvmandarinnews\\n⚫ Telegram\\nhttps://t.me/s/MandarinNewsOfficial\\n\\n#八度空间华语新闻 #8TVMandarinNews\\n\\n\",\n        \"position\": 2\n      },\n      {\n        \"title\": \"2026年5月10日头条新闻速览\",\n        \"url\": \"https://www.toutiao.com/article/7637981019086062114/\",\n        \"description\": \"国内要闻. 1. 国务院推进地方化债：研究部署地方政府债务风险化解，落实一揽子化债方案，稳妥处置隐性债务。 2. 天舟十号待命发射：飞船完成全区合练，各\",\n        \"position\": 3\n      },\n      {\n        \"title\": \"今日头条_新湘评论\",\n        \"url\": \"https://www.cnxxpl.com/channel/22430.html\",\n        \"description\": \"* “需要共同书写的时代答卷”——习近平主席同特朗普总统会晤侧记 *2026-5-15*. * 第一观察｜引领中美关系这艘大船穿越风浪、平稳前行 *2026-5-12*. * 不断书写“小商品、大市场”新篇章——“义乌发展经验”引领打造因地制宜发展的县域经济样本 *2026-5-11*. * 人民日报：坚持不懈，提升我国原始创新能力——论学习贯彻习近平总书记在加强基础研究座谈会上重要讲话 *2026-5-4*. * 习近平回信勉励中国青年五四奖章暨新时代青年先锋奖获奖者代表 胸怀远大理想矢志拼搏奋斗 带动广大青年把个人追求融入国家发展大局 *2026-5-4*. * 习近平在加强基础研究座谈会上强调 以更大力度更实举措加强基础研究 进一步打牢科技强国建设根基 蔡奇出席 丁薛祥主持 *2026-5-1*. * 中共中央政治局召开会议 分析研究当前经济形势和经济工作 中共中央总书记习近平主持会议 *2026-4-29*. * 习近平会见老挝人民革命党中央总书记、国家主席特使沙伦赛 *2026-4-22*. * 特稿丨大变局中显担当——中国元首外交为动荡世界注入稳定力量 *2026-4-20*. * 在“变”与“不变”中破浪前行——从首季答卷看中国经济韧性密码 *2026-4-20*. * 全国大中小学生同上一堂思政大课 让国家安全的种子生根发芽 *2026-4-17*. * 让中越“同志加兄弟”的深厚情谊焕发青春光彩——习近平总书记、国家主席同苏林总书记、国家主席共同会见中越青年代表侧记 *2026-4-16*. * 习近平：推动全民阅读，建设书香社会 *2026-4-16*. * 习近平同越共中央总书记、国家主席苏林举行会谈 *2026-4-16*. * 以消费为桥 扬开放风帆——写在第六届中国国际消费品博览会举办之际 *2026-4-13*. * 树立和践行正确政绩观丨重结合 惠民生 促发展——各地扎实开展树立和践行正确政绩观学习教育 *2026-4-10*. * 习近平在全军高级干部培训班开班式上发表重要讲话强调 开展思想整风 深化政治整训 以崭新政治面貌迎接建军一百周年 *2026-4-9*. * 习近平给四所交通大学全体师生回信强调 传承弘扬西迁精神聚焦国家重大战略需求 为建设教育强国科技强国人才强国作出新贡献 *2026-4-8*. * 习近平：树立和践行正确政绩观 *2026-4-3*. * 《求是》杂志发表习近平总书记重要文章《树立和践行正确政绩观》 *2026-4-3*. * 习近平在参加首都义务植树活动时强调 为山川大地增添锦绣 让中国式现代化底色更加亮丽 *2026-3-31*. * “对雄安的发展前景，我们充满信心” *2026-3-25*. * 习近平：牢牢把握雄安新区功能定位 努力建设新时代创新高地和推动高质量发展样板 *2026-3-24*. * 新华社评论员：有效防范和纠治政绩观偏差——论扎实开展树立和践行正确政绩观学习教育 *2026-3-23*. * 中办国办印发《国有企业领导人员廉洁从业规定》 *2026-3-23*. * 树立和践行正确政绩观丨全面部署、以上率下、务求实效——各地扎实开展树立和践行正确政绩观学习教育 *2026-3-20*. * 新华社政论：夯实基础全面发力，推进中国式现代化行稳致远 *2026-3-18*. 关于我们　　|　　广告业务　　|　　诚聘　　|　　合作伙伴　　|　　网上投稿　　|　　联系我们. 互联网新闻信息服务许可证：43120200001 杂志社咨询电话：0731-81127526(传真). 违法和不良信息举报电话：0731-81125971 举报邮箱地址：xxpl1919@163.com*.\",\n        \"position\": 4\n      },\n      {\n        \"title\": \"2026-05-14 新闻速读让阅读成为一种习惯1、多地2026中小-今日头条\",\n        \"url\": \"https://www.toutiao.com/w/1865115602452489/\",\n        \"description\": \"2026-05-14 新闻速读让阅读成为一种习惯1、多地2026中小学暑假时间出炉：上海和无锡7月1日最早放假，假期长达62天，比往年多出约一周；2、广州2025年末\",\n        \"position\": 5\n      }\n    ]\n  }\n}",
      "tool_call_id": "call_function_w9l3c90qjnnc_1"
    },
    {
      "role": "tool",
      "name": "web_search",
      "content": "{\n  \"success\": true,\n  \"data\": {\n    \"web\": [\n      {\n        \"title\": \"北京 - 百度\",\n        \"url\": \"https://weathernew.pae.baidu.com/weathernew/pc?query=%E5%8C%97%E4%BA%AC%E5%A4%A9%E6%B0%94&srcid=4982\",\n        \"description\": \"北京 今天 ... 今日气温明显升高，可适当减少衣物. 穿衣: 薄外套类. 17℃~27℃. 感冒: 极易发. 风力较大. 出游: 较适宜. 多云, 空气优. 洗车: 不适宜. 近期有大风. 未来39天天气\",\n        \"position\": 1\n      },\n      {\n        \"title\": \"天氣- 北京市- 14天預報：氣溫、風和雷達 - Ventusky\",\n        \"url\": \"https://www.ventusky.com/zh-tw/beijing\",\n        \"description\": \"預測 · 二 大部分多雲 26 °C · 三 灰濛蒙 22 °C · 四 多雲 24 °C · 五 大部分多雲 26 °C · 六 晴朗的天空，幾朵雲 31 °C · 日 多雲 31 °C · 一 灰濛蒙 33 °C · 二 陰有雨 25\",\n        \"position\": 2\n      },\n      {\n        \"title\": \"北京, 北京市, 中國三日天氣預報 - AccuWeather\",\n        \"url\": \"https://www.accuweather.com/zh/cn/beijing/101924/weather-forecast/101924\",\n        \"description\": \"# 北京, 北京市. 今天 WinterCast 當地{stormName}追蹤 每小時 十天賽 雷達 MinuteCast® 每月 空氣品質 健康與活動. ### 颶風 ### 惡劣天氣 ### 雷達與氣象圖 ### 視訊. ## 今天  每小時   十天賽   雷達   MinuteCast®   每月   空氣品質   健康與活動. ## 北京 氣象雷達圖. Thank you for your patience as we work to get everything up and running again. ## 每小時預測. rain drop 49%  下午3时   18°. ## 太陽和月亮. ## 空氣品質. ## 過敏展望. 世界 亞洲 中國 北京市 北京. ## 附近地方:. © 2026 AccuWeather, Inc. 版權所有。「AccuWeather」和太陽商標設計是 AccuWeather, Inc. 的註冊商標。保留所有權利。. 使用條款  |  隱私權政策  |  Cookie 政策  |  資料來源.\",\n        \"position\": 3\n      },\n      {\n        \"title\": \"北京-天气预报 - 中央气象台\",\n        \"url\": \"https://www.nmc.cn/publish/forecast/ABJ/beijing.html\",\n        \"description\": \"北京  18.3℃ 西南风 微风. 发布时间：05-15 12:00. 国家气象中心 版权所有 Copyright©2009-2026. 制作维护：国家气象中心预报系统开放实验室 地址：北京市中关村南大街46号 邮编：100081.\",\n        \"position\": 4\n      },\n      {\n        \"title\": \"北京市天气预报\",\n        \"url\": \"https://tianqi.moji.com/weather/china/beijing/beijing\",\n        \"description\": \"首页 天气 下载 资讯 关于墨迹. *18* 雾 **雾** **今天5:04更新**. ## 生活指数. ## 四川省凉山彝族自治州盐源县泸沽湖镇亚泸路泸沽湖风景名胜区. ## 安徽省黄山市休宁县溪口镇詹家山. 公司地址：北京市朝阳区来广营东路融新科技中心C座15层 联系电话：400-880-0599.\",\n        \"position\": 5\n      }\n    ]\n  }\n}",
      "tool_call_id": "call_function_w9l3c90qjnnc_2"
    },
    {
      "role": "assistant",
      "content": "",
      "reasoning": "好的，我获取了一些信息。现在我需要：\n\n1. 日期：今天是2026年5月18日（根据系统时间），但我需要确认。系统说的是Monday, May 18, 2026，所以是5月18日，星期一。\n\n2. 新闻：我看到了一些5月12-14日的新闻，但这些是过时的。我需要获取今天（5月18日）的新闻。不过搜索结果主要显示的是5月12-14日的新闻。让我尝试搜索更具体的今天新闻。\n\n等等，系统时间说是Monday, May 18, 2026 03:30 AM，所以确实是5月18日。\n\n让我再搜索一下今天（5月18日）的新闻。",
      "finish_reason": "tool_calls",
      "reasoning_content": "好的，我获取了一些信息。现在我需要：\n\n1. 日期：今天是2026年5月18日（根据系统时间），但我需要确认。系统说的是Monday, May 18, 2026，所以是5月18日，星期一。\n\n2. 新闻：我看到了一些5月12-14日的新闻，但这些是过时的。我需要获取今天（5月18日）的新闻。不过搜索结果主要显示的是5月12-14日的新闻。让我尝试搜索更具体的今天新闻。\n\n等等，系统时间说是Monday, May 18, 2026 03:30 AM，所以确实是5月18日。\n\n让我再搜索一下今天（5月18日）的新闻。",
      "reasoning_details": [
        {
          "signature": "0291a5a64d159d79ba7caa3ba6845fa454e4b042a2f954814fd91da337b5ed7d",
          "thinking": "好的，我获取了一些信息。现在我需要：\n\n1. 日期：今天是2026年5月18日（根据系统时间），但我需要确认。系统说的是Monday, May 18, 2026，所以是5月18日，星期一。\n\n2. 新闻：我看到了一些5月12-14日的新闻，但这些是过时的。我需要获取今天（5月18日）的新闻。不过搜索结果主要显示的是5月12-14日的新闻。让我尝试搜索更具体的今天新闻。\n\n等等，系统时间说是Monday, May 18, 2026 03:30 AM，所以确实是5月18日。\n\n让我再搜索一下今天（5月18日）的新闻。",
          "type": "thinking"
        }
      ],
      "tool_calls": [
        {
          "id": "call_function_n5by0xyxrff2_1",
          "call_id": "call_function_n5by0xyxrff2_1",
          "response_item_id": "fc_function_n5by0xyxrff2_1",
          "type": "function",
          "function": {
            "name": "web_search",
            "arguments": "{\"query\": \"2026\\u5e745\\u670818\\u65e5 \\u4eca\\u65e5\\u5934\\u6761 \\u4e2d\\u56fd\\u65b0\\u95fb\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "name": "web_search",
      "content": "{\n  \"success\": true,\n  \"data\": {\n    \"web\": [\n      {\n        \"title\": \"2026年5月18日北京日报版面速览\",\n        \"url\": \"https://news.bjd.com.cn/2026/05/18/90083865.shtml\",\n        \"description\": \"热  点 锐  评 发布厅 经  济 城  事 视  觉 京  剧 汽  车 纸上听 时  事 学  习 都视频 艺  绽 深  读 京  味 体  育 天  下 长  城. 热点 锐评 经济 城事 辟谣 京剧 都视频 电子报 汽车 时事 学习 视觉 艺绽 深读 京味 纸上听 体育 天下 长城 北京民声 北晚在线. 如遇作品内容、版权等问题，请在相关文章刊发之日起30日内与本网联系。版权侵权联系电话：010-85202353. 人民网 新华网 央视网 光明网 中国网 中国日报网 中国经济网 千龙网 今日头条 百度 新浪 网易 腾讯 搜狐 爱奇艺 优酷. 主管：北京日报报业集团 主办：京报移动传媒有限公司 Copyright ©1996-2026 Beijing Daily Group, All Rights Reserved. 互联网新闻信息服务许可证11120180001号 网络出版服务许可证（京）字第338号 信息网络传播视听节目许可证0122682号 广播电视节目制作经营许可证（京）字第00693号. 京公网安备11040202440037号  工信部备案号：京ICP备16035741号-1 京新网备2010001号   网上有害信息举报专区    北京互联网举报中心. Copyright ©1996-2026 Beijing Daily Group, All Rights Reserved.\",\n        \"position\": 1\n      },\n      {\n        \"title\": \"头条新闻_今日中国\",\n        \"url\": \"http://www.chinatoday.com.cn/zw2018/ttxw/\",\n        \"description\": \"外交部发言人5月11日宣布：应国家主席习近平邀请，美利坚合众国总统唐纳德·特朗普将于5月13日至15日对中国进行国事访问。 2026-05-11 10:31. 习近平回信勉励中国青年五\",\n        \"position\": 2\n      },\n      {\n        \"title\": \"四大证券报头版头条内容精华摘要_2026年5月18日 - 新浪财经\",\n        \"url\": \"https://finance.sina.cn/stock/ywgg/2026-05-18/detail-inhyhisv3014625.d.html?vt=4&wm=2284_1116?pt\",\n        \"description\": \"## 新浪财经 股票. # 四大证券报头版头条内容精华摘要\\\\_2026年5月18日\\\\_财经新闻. ## 股市直击. 作为扩大入境消费的重要举措之一，我国离境退税政策将迎来迭代升级。中国证券报记者日前获悉，离境退税优化举措即将推出。专家认为，优化离境退税政策将利于进一步释放入境消费潜力，为免税零售、国货消费等领域的上市公司带来业绩增长新机遇。. **组织开展“国际投资者赴境内调研上市公司”活动 上交所：吸引更多境外中长期资金入市**. 5月17日，记者从上交所获悉，日前上交所组织开展了“国际投资者赴境内调研上市公司”活动，旨在深化国际投资者对沪市公司的认知了解，畅通国际资本与上市公司对接渠道，推动资本市场高水平对外开放。据了解，本次活动邀请了境外主权基金、养老金、资管公司等三十余家国际机构投资者代表，深入科创企业一线。国际投资者代表团先后赴北京、上海两地，通过实地参观、与管理层座谈等形式，了解重点领域沪市科技创新产业企业。上交所还同步举办了沪市科技创新产业公司集中路演活动，为投融资双方提供更具针对性、更高质量的沟通渠道。. 阿里巴巴;)、腾讯最新发布的财报显示，它们的AI资本开支继续加大。AI算力需求驱动数据中心建设，算力设施的能源消耗成为无法忽视的问题。近日，国家发展改革委、国家能源局等部门印发《关于促进人工智能与能源双向赋能的行动方案》，促使“算电协同”成为市场热词，绿电、储能行业上市公司积极布局，以把握市场机遇。. 近日，北交所举办“云启新程”主题业绩说明会，美登科技、天润科技、众诚科技、乐创技术等多家聚焦数字经济赛道的科技企业集中亮相。围绕AI技术应用、业绩波动应对及未来增长战略，各公司高管直面市场关切，传递出北交所企业抢抓智能经济风口的清晰信号。. “敢不敢授信？”“什么阶段给？”——这两个灵魂拷问，时常困扰着银行业。尤其在商业航天这个“高投入、长周期、技术密集”的新赛道，企业发展以“火箭速度”迭代，传统金融服务模式已无法完全适配。上海证券报记者近日走访北京多家商业航天企业发现，一场金融与硬科技的“双向奔赴”正在破题。. 记者从长光卫星获悉，5月17日，公司在吉林省航天信息;)产业园举行“文物01星”“彩云光学01星”“安铁03星”“利川红”卫星以及“吉星”高分07C04星等8颗卫星的出征仪式。记者注意到，今年4月以来，长光卫星的卫星发射与资本化进程均呈加速推进态势：接连发射多批卫星，服务领域覆盖国家卫星互联网工程、金融等关键基础设施领域；同时，长光卫星IPO按下“重启键”，并新获国资助力。. **更新招股书，预计上半年盈利500亿元至570亿元 长鑫科技IPO提速 抢抓“存储超级周期”机遇**. 5月17日，长鑫科技更新IPO招股书（申报稿），审核状态由“中止”恢复为 “已问询”，标志着这家国产DRAM龙头上市进程全面提速。作为国内DRAM芯片龙头，长鑫科技乘风存储行业超级周期，实现了业绩大爆发，公司本次拟IPO募资295亿元，重点用于产能扩建与技术迭代升级。. 5月17日晚，衢州发展披露，经董事会审议通过，公司终止通过发行股份方式购买先导电子科技股份有限公司（简称“先导电科”）95.4559%股份并募集配套资金暨关联交易事项。这场历时9个多月的重组项目宣告终止，公司将于5月20日就此召开投资者说明会。. 今年以来，交易型开放式指数基金（ETF）市场内部资金流向持续分化，宽基ETF整体承压，而商品、跨境及部分行业主题ETF则持续获得资金流入，ETF市场的结构性特征进一步强化。Wind数据显示，截至5月15日，商品型ETF、跨境ETF年内均实现规模正增长，其中黄金ETF;)、港股科技ETF以及部分海外成长方向产品获得较多资金关注。与此同时，卫星通信、半导体材料设备、电网设备等行业主题ETF也持续获得增量资金流入。. 5月17日晚间，存储芯片巨头长鑫科技集团股份有限公司（下称“长鑫科技”）披露首次公开发行股票并在科创板上市的招股说明书。长鑫科技是我国规模最大、技术最先进、布局最全的DRAM（动态随机存储器）产品研发设计制造一体化企业，目前公司核心产品及工艺技术已经达到国际先进水平。公司在合肥、北京两地共拥有3座12英寸DRAM晶圆厂，根据Omdia的数据，按照产能、出货量和销售额统计，公司已经成为中国第一、全球第四的DRAM厂商。. 随着“龙虾”（OpenClaw）智能体爆火，今年以来，电信运营商纷纷转向Token（词元）经营。与此同时，Token成本快速下降，需求爆发式增长。经过一段时间酝酿，运营商围绕Token经营的完整打法也浮出水面。中国移动;)将Token定义为连接算力、模型、应用与用户的“通用货币”，中国电信则认为Token经营的本质是为用户提供AI服务。各家运营商的侧重点不尽相同，但目标都是抢占大模型时代的关键入口。. 5月15日，中国证监会正式发布了《衍生品交易监督管理办法（试行）》（下称“衍生品新规”）。此前，衍生品新规经历了三次征求意见，分别是在2023年3月、2023年11月以及2026年1月，如今正式稿终于落地，将自2026年11月16日起施行。. 5月15日，中国证监会及深交所官网披露，华润新能源控股有限公司（以下简称“华润新能源”）主板IPO注册生效，成为注册制以来深交所市场（以下简称“深市”）主板首单注册生效的红筹企业。所谓红筹企业，即注册地在境外、主要经营活动和资产在境内、实际控制人为中资的企业，长期以来是中国企业境外上市的主流架构。红筹企业选择境内上市，背后折射出中国资本市场对红筹企业包容性的持续提升与制度体系的不断完善。据《证券日报》记者统计，除即将登陆深交所的华润新能源外，截至目前已有11家红筹企业成功登陆A股。. AI服务器等新兴需求持续增长，正推动电子布行业进入新一轮扩产周期。近期，多家上市公司密集披露电子布项目建设及产能投放计划，高端电子布成为其重点布局方向。例如，5月13日晚间，中国巨石;)股份有限公司公告称，公司全资子公司巨石集团有限公司之全资子公司巨石集团淮安有限公司拟建设年产5万吨电子纱暨3.2亿米电子布生产线建设项目，总投资44.31亿元。. **从“流量经营”迈向“算力经营” 电信运营商开卖词元套餐**.\",\n        \"position\": 3\n      },\n      {\n        \"title\": \"頭條開講 - YouTube\",\n        \"url\": \"https://www.youtube.com/channel/UCdp5pYDJCpl5WFk3jFEjWHw\",\n        \"description\": \"解放軍已佈上百洲際飛彈？陸出手！歐乳製品慘誰賺到？美搶油搶到中國頭上？20251223 @中天新聞CtiNews @頭條開講HeadlinesTalk ... 中國為期兩天最新深度剖析20260517 @頭條開講\",\n        \"position\": 4\n      },\n      {\n        \"title\": \"5月18日国内四大证券报纸、重要财经媒体头版头条内容精华摘要 _ 东方财富网\",\n        \"url\": \"https://finance.eastmoney.com/a/202605183739804543.html\",\n        \"description\": \"* [财经](http://finance.eastmoney.com/). * [焦点](http://finance.eastmoney.com/yaowen.html). * [股票](http://stock.eastmoney.com/). * [新股](http://stock.eastmoney.com/newstock.html). * [期指](http://stock.eastmoney.com/gzqh.html). * [期权](http://option.eastmoney.com/). * [行情](http://quote.eastmoney.com/flash/sz300059.html). * [数据](http://data.eastmoney.com/). * [全球](http://stock.eastmoney.com/global.html). * [美股](http://stock.eastmoney.com/america.html). * [港股](http://hk.eastmoney.com/). * [期货](http://futures.eastmoney.com/). * [外汇](http://forex.eastmoney.com/). * [银行](http://bank.eastmoney.com/). * [理财](http://money.eastmoney.com/). * [债券](http://bond.eastmoney.com/). * [直播]( https://roadshow.eastmoney.com/). * [股吧](http://guba.eastmoney.com/). * [基金吧](http://guba.eastmoney.com/jj.html). * [博客](http://blog.eastmoney.com/). * [财富号](http://caifuhao.eastmoney.com/). * [搜索](http://so.eastmoney.com/). [首页](https://www.eastmoney.com/) > [财经频道](https://finance.eastmoney.com/) > 正文. [**离境退税优化举措推出在即 持续激活入境消费潜力**](http://finance.eastmoney.com/a/202605183739804015.html). [**组织开展“国际投资者赴境内调研上市公司”活动 上交所：吸引更多境外中长期资金入市**](http://finance.eastmoney.com/a/202605183739804152.html). 5月17日，记者从上交所获悉，日前上交所组织开展了“国际投资者赴境内调研上市公司”活动，旨在深化国际投资者对沪市公司的认知了解，畅通国际资本与上市公司对接渠道，推动资本市场高水平对外开放。据了解，本次活动邀请了境外主权基金、[养老金](http://quote.eastmoney.com/unify/r/90.BK0823)、资管公司等三十余家国际机构投资者代表，深入科创企业一线。国际投资者代表团先后赴北京、上海两地，通过实地参观、与管理层座谈等形式，了解重点领域沪市科技创[新产业](http://quote.eastmoney.com/unify/r/0.300832)企业。上交所还同步举办了沪市科技创新产业公司集中路演活动，为投融资双方提供更具针对性、更高质量的沟通渠道。. [**算力设施建设保持热度 上市公司开拓“算电协同”蓝海**](http://finance.eastmoney.com/a/202605183739804326.html). [阿里巴巴](http://quote.eastmoney.com/unify/r/106.BABA)、腾讯最新发布的财报显示，它们的AI资本开支继续加大。AI算力需求驱动[数据中心](http://quote.eastmoney.com/unify/r/90.BK0922)建设，算力设施的能源消耗成为无法忽视的问题。近日，国家发展改革委、国家能源局等部门印发《关于促进[人工智能](http://quote.eastmoney.com/unify/r/90.BK0800)与能源双向赋能的行动方案》，促使“算电协同”成为市场热词，绿电、储能行业上市公司积极布局，以把握市场机遇。. [**抢抓智能经济新风口 北交所公司探寻增长新动能**](http://finance.eastmoney.com/a/202605183739804433.html). 近日，北交所举办“云启新程”主题业绩说明会，[美登科技](http://quote.eastmoney.com/unify/r/0.920227)、[天润科技](http://quote.eastmoney.com/unify/r/0.920564)、[众诚科技](http://quote.eastmoney.com/unify/r/0.920207)、[乐创技术](http://quote.eastmoney.com/unify/r/0.920425)等多家聚焦[数字经济](http://quote.eastmoney.com/unify/r/90.BK1061)赛道的科技企业集中亮相。围绕AI技术应用、业绩波动应对及未来增长战略，各公司高管直面市场关切，传递出北交所企业抢抓智能经济风口的清晰信号。. [**金融“燃料”助飞商业航天**](http://finance.eastmoney.com/a/202605183739793013.html). “敢不敢授信？”“什么阶段给？”——这两个灵魂拷问，时常困扰着[银行](http://quote.eastmoney.com/unify/r/90.BK1283)业。尤其在[商业航天](http://quote.eastmoney.com/unify/r/90.BK0963)这个“高投入、长周期、技术密集”的新赛道，企业发展以“火箭速度”迭代，传统金融服务模式已无法完全适配。上海证券报记者近日走访北京多家商业航天企业发现，一场金融与硬科技的“双向奔赴”正在破题。. [**8颗卫星再出征，商业卫星独角兽提速**](http://finance.eastmoney.com/a/202605173739773451.html). 记者从长光卫星获悉，5月17日，公司在吉林省[航天信息](http://quote.eastmoney.com/unify/r/1.600271)产业园举行“文物01星”“彩云光学01星”“安铁03星”“利川红”卫星以及“吉星”高分07C04星等8颗卫星的出征仪式。记者注意到，今年4月以来，长光卫星的卫星发射与资本化进程均呈加速推进态势：接连发射多批卫星，服务领域覆盖国家[卫星互联网](http://quote.eastmoney.com/unify/r/90.BK0921)工程、金融等关键基础设施领域；同时，长光卫星IPO按下“重启键”，并新获国资助力。. [**更新招股书，预计上半年盈利500亿元至570亿元 长鑫科技IPO提速 抢抓“存储超级周期”机遇**](http://finance.eastmoney.com/a/202605183739793681.html). [**终止收购先导电科 衢州发展跨界转型折戟**](http://finance.eastmoney.com/a/202605183739792782.html). 5月17日晚，[衢州发展](http://quote.eastmoney.com/unify/r/1.600208)披露，经董事会审议通过，公司终止通过发行股份方式购买先导[电子](http://quote.eastmoney.com/unify/r/90.BK1201)科技股份有限公司（简称“先导电科”）95.4559%股份并募集配套资金暨关联交易事项。这场历时9个多月的重组项目宣告终止，公司将于5月20日就此召开投资者说明会。. [**ETF结构性配置趋势强化 三大主线成布局焦点**](http://stock.eastmoney.com/a/202605183739801542.html). 今年以来，交易型开放式指数基金（ETF）市场内部资金流向持续分化，宽基ETF整体承压，而商品、跨境及部分行业主题ETF则持续获得资金流入，ETF市场的结构性特征进一步强化。Wind数据显示，截至5月15日，商品型ETF、跨境ETF年内均实现规模正增长，其中[黄金](http://quote.eastmoney.com/unify/r/90.BK1617)ETF、港股科技ETF以及部分海外成长方向产品获得较多资金关注。与此同时，卫星[通信](http://quote.eastmoney.com/unify/r/90.BK1215)、[半导体](http://quote.eastmoney.com/unify/r/90.BK1036)材料设备、[电网设备](http://quote.eastmoney.com/unify/r/90.BK0457)等行业主题ETF也持续获得增量资金流入。. [**长鑫科技一季度归母净利润247.62亿元**](http://finance.eastmoney.com/a/202605183739802166.html). 5月17日晚间，[存储芯片](http://quote.eastmoney.com/unify/r/90.BK1137)巨头长鑫科技集团股份有限公司（下称“长鑫科技”）披露首次公开发行股票并在科创板上市的招股说明书。长鑫科技是我国规模最大、技术最先进、布局最全的DRAM（动态随机存储器）产品研发设计制造一体化企业，目前公司核心产品及工艺技术已经达到国际先进水平。公司在合肥、北京两地共拥有3座12英寸DRAM晶圆厂，根据Omdia的数据，按照产能、出货量和销售额统计，公司已经成为中国第一、全球第四的DRAM厂商。. [**从Byte到Token 电信运营商抢抓大模型关键入口**](http://finance.eastmoney.com/a/202605183739800525.html). 随着“龙虾”（OpenClaw）智能体爆火，今年以来，[电信运营商](http://quote.eastmoney.com/unify/r/90.BK1587)纷纷转向Token（词元）经营。与此同时，Token成本快速下降，需求爆发式增长。经过一段时间酝酿，运营商围绕Token经营的完整打法也浮出水面。[中国移动](http://quote.eastmoney.com/unify/r/1.600941)将Token定义为连接算力、模型、应用与用户的“通用货币”，[中国电信](http://quote.eastmoney.com/unify/r/1.601728)则认为Token经营的本质是为用户提供AI服务。各家运营商的侧重点不尽相同，但目标都是抢占大模型时代的关键入口。. [**衍生品新规年内施行 多家券商积极谋划业务打法**](http://finance.eastmoney.com/a/202605183739800673.html). [**深市主板将迎首家注册制红筹企业**](http://finance.eastmoney.com/a/202605183739791546.html). 5月15日，中国证监会及深交所官网披露，华润[新能源](http://quote.eastmoney.com/unify/r/90.BK0493)控股有限公司（以下简称“华润新能源”）主板IPO注册生效，成为注册制以来深交所市场（以下简称“深市”）主板首单注册生效的红筹企业。所谓红筹企业，即注册地在境外、主要经营活动和资产在境内、实际控制人为中资的企业，长期以来是中国企业境外上市的主流架构。红筹企业选择境内上市，背后折射出中国资本市场对红筹企业包容性的持续提升与制度体系的不断完善。据《证券日报》记者统计，除即将登陆深交所的华润新能源外，截至目前已有11家红筹企业成功登陆A股。. [**电子布需求旺盛 上市公司加速扩产**](http://finance.eastmoney.com/a/202605183739789725.html). AI服务器等新兴需求持续增长，正推动电子布行业进入新一轮扩产周期。近期，多家上市公司密集披露电子布项目建设及产能投放计划，高端电子布成为其重点布局方向。例如，5月13日晚间，[中国巨石](http://quote.eastmoney.com/unify/r/1.600176)股份有限公司公告称，公司全资子公司巨石集团有限公司之全资子公司巨石集团淮安有限公司拟建设年产5万吨电子纱暨3.2亿米电子布生产线建设项目，总投资44.31亿元。. [**从“流量经营”迈向“算力经营” 电信运营商开卖词元套餐**](http://finance.eastmoney.com/a/202605183739790165.html). 5月17日，中国电信集团有限公司（以下简称“中国电信”）正式宣布推出系列试商用词元（Token）套餐，面向个人及家庭客户、开发者及中小微企业客户以及[中国电信](http://quote.eastmoney.com/unify/r/116.00728)词元生态合作伙伴分别开放不同类型的资费套餐产品。. [**年内消费金融公司挂牌转让不良贷款规模超320亿元**](http://bank.eastmoney.com/a/202605183739791181.html). [**从嘉陵CJ50到张雪机车820RR—— 47年，一条产业链托起一台冠军摩托车（经济聚焦）**](http://finance.eastmoney.com/a/202605183739806959.html). 5月17日，2026年WSBK（世界超级[摩托车](http://quote.eastmoney.com/unify/r/90.BK1521)锦标赛）捷克站，来自中国重庆的摩托车制造商张雪机车，赛季内第五次登上冠军领奖台。1979年秋，重庆嘉陵机器厂的工程师们通过手绘设计图，造出国内首款量产民用轻便摩托车。. [**上市公司交出近三年最好成绩单 解码年报“含金量”（财经深一度）**](http://finance.eastmoney.com/a/202605183739806520.html). [**个人存款计息规则未发生调整**](http://bank.eastmoney.com/a/202605183739809112.html). [**绿色转型成建材业发展主线**](http://finance.eastmoney.com/a/202605183739809634.html). 一段时期以来，我国建材行业持续承压，市场需求出现小幅回落，建材企业生产放缓，建材产品价格延续低位波动态势。面对压力，建材行业主动加快结构调整，提升产能利用率，绿色发展成为行业转型的核心增长引擎，特别是先进[新材料](http://quote.eastmoney.com/unify/r/90.BK0523)产业势头强劲，成为建材行业发展新亮点。. [**《人工智能法》浙大版学者建议稿圆桌论坛召开**](http://finance.eastmoney.com/a/202605173739657786.html). [**欧盟对中国实体采取跨境调查 商务部：希望欧委会迅速纠正错误做法**](http://finance.eastmoney.com/a/202605163739609629.html). [**新一轮药品集采拉开序幕，个别品种竞争企业超50家**](http://finance.eastmoney.com/a/202605173739764871.html). 第十一批国家药品集中带量采购（下称“集采”）落地仅两个多月，随着信息预填报工作的启动，第十二批集采序幕也已拉开。与过往批次相比，第十二批集采首次引入信息预填报机制，且填报时间节点较前两年集采启动时间大幅提前。市场由此预期，下半年或将再启动一批新集采。与此同时，上海市自5月起实施的药品医保“定额报销”新政，不再对基层[医院](http://quote.eastmoney.com/unify/r/90.BK1601)配备集采药品的采购比例作硬性要求。这一变化引发了市场对第十二批集采量的关注。. [**霍尔木兹海峡通气量几近归零，欧亚LNG“抢筹”大战白热化**](http://finance.eastmoney.com/a/202605173739762846.html). 由于霍尔木兹海峡迟迟未能重开，全球液化[天然气](http://quote.eastmoney.com/unify/r/90.BK0843)（LNG）的出口严重受阻，一场跨越欧亚大陆的能源“抢筹”争夺战已然打响。“目前市场上任何一张现货提单一旦释出，都会立即被买家消化。”彭博行业研究（BI）全球能源团队资深分析师冯汉南（Henik Fung）在接受第一财经记者采访时，这样形容当前LNG现货市场的白热化竞争。他同时警告称，即便地缘冲突在短期内结束、海峡得以重开，由于过去一段时间库存消耗殆尽，未来3至6个月的补库需求竞争依然会非常强劲。. [**直击中芯国际业绩会 AI配套芯片需求强劲 二季度毛利率指引为20%—22%**](http://finance.eastmoney.com/a/202605183739821432.html). “基于客户需求和在手订单情况，相较于上个季度，公司对于今年的整体运营情况更加乐观。”5月15日，[中芯国际](http://quote.eastmoney.com/unify/r/1.688981)召开一季报业绩说明会，公司联合CEO赵海军如此表示。前一日，中芯国际披露的一季报显示，实现营收176.17亿元，同比增长8.1%；归母净利润为13.61亿元，同比增长0.4%；扣非后归母净利润为12.32亿元，同比增长5.3%。展望第二季度，中芯国际预计收入环比增长14%到16%，毛利率指引为20%至22%，与上一季指引相比提升2个百分点。. [**衍生品交易将“有章可循” 上市公司股票衍生品交易被全面收紧**](http://futures.eastmoney.com/a/202605153739203824.html). 中国衍生品市场迎来首部统一监管规章。5月15日，证监会正式发布《衍生品交易监督管理办法（试行）》（以下简称《办法》），对衍生品交易的参与主体、合约设计、交易结算、风险管理等各环节作出系统性规定。这是2022年施行[期货](http://quote.eastmoney.com/unify/r/90.BK1361)和衍生品法以来，监管部门首次以部门规章形式，将法律中的原则性条款转化为可执行的具体规定。. [**吴清：研究推出更多深化包容性改革举措**](http://finance.eastmoney.com/a/202605183739803847.html). 近日，证监会党委书记、主席吴清在北京召开座谈会，与智能消费、国货“潮品”、现代[物流](http://quote.eastmoney.com/unify/r/90.BK0422)、IP文创等现代服务业和新型消费领域的境内外上市公司和企业代表深入交流，充分听取意见建议。吴清表示，将在“十五五”时期进一步科学谋划、研究推出更多深化包容性改革、推动资本市场高质量发展的具体举措，更好支持包括服务和消费领域在内的各类实体经济企业发展壮大。. [**34项重点任务护航民营经济发展壮大**](http://finance.eastmoney.com/a/202605183739803921.html). （文章来源：[东方财富](http://quote.eastmoney.com/unify/r/0.300059)研究中心）. * [沪股通](http://quote.eastmoney.com/center/gridlist.html#sh_hk_board). * [深股通](http://quote.eastmoney.com/center/gridlist.html#sz_hk_board). * [港股通(沪)](http://quote.eastmoney.com/center/gridlist.html#hk_sh_stocks). * [港股通(深)](http://quote.eastmoney.com/center/gridlist.html#hk_sz_stocks). * [特朗普称仍相信伊朗有意达成协议](https://finance.eastmoney.com/a/202605183739806750.html). * [长鑫科技IPO核心受益股一览](https://finance.eastmoney.com/a/202605183739821249.html). * [特朗普称仍相信伊朗有意达成协议](https://fund.eastmoney.com/a/202605183739806750.html). * [上海移动推出Token通用服务](https://finance.eastmoney.com/a/202605173739777479.html). [焦点专题](https://topic.eastmoney.com/). * [党的二十届四中全会](https://topic.eastmoney.com/detail/esjszqh2025.html). [OpenClaw刷屏](https://topic.eastmoney.com/detail/OpenClaw2026.html)   [猪价刷新十余年低点](https://topic.eastmoney.com/detail/zhujia2026.html). [视频](https://video.eastmoney.com/). * [一键关注财经大咖](http://acttg.eastmoney.com/pub/web_nr_zxzwy_rdtjx_01_01_01_0). [日赚近4亿！存储龙头长鑫科技IPO有新进展 核心受益股一览](http://finance.eastmoney.com/a/202605183739821249.html). [606 人评论](http://finance.eastmoney.com/a/202605183739821249.html)  2026-05-18. * [东方财富免费版](https://acttg.eastmoney.com/pub/pctg_hskh_act_dfcfwmfb_01_01_01_0). * [东方财富Level-2](https://acttg.eastmoney.com/pub/pctg_hskh_act_dfcfwl2_01_01_01_0). * [妙想投研助理](https://acttg.eastmoney.com/pub/web_dfcfsy_wzl_bottom_02_02_04_1). * [东方财富证券交易](https://acttg.eastmoney.com/pub/pctg_hskh_act_dfcfzqjy_01_01_01_0). * [意见与建议](http://corp.eastmoney.com/Lianxi_liuyan.asp). * [基金产品](http://fund.eastmoney.com/trade/default.html). * [稳健理财](http://fund.eastmoney.com/gslc/).\",\n        \"position\": 5\n      }\n    ]\n  }\n}",
      "tool_call_id": "call_function_n5by0xyxrff2_1"
    },
    {
      "role": "assistant",
      "content": "",
      "reasoning": "Now I have the information I need:\n\n1. Date: 2026年5月18日 (星期一) - Today is May 18, 2026, Monday\n2. Beijing weather: 17℃~27℃, cloudy, air quality good\n3. Key news:\n   - 离境退税优化举措推出在即，持续激活入境消费\n   - 上交所组织开展国际投资者赴境内调研上市公司活动\n   - 算力设施建设保持热度，上市公司开拓\"算电协同\"蓝海\n   - 中国电信推出Token套餐，运营商抢抓大模型入口\n   - 长鑫科技存储芯片，DRAM厂商成为全球第四\n\nLet me compose the broadcast text in Chinese with all numbers in Chinese characters.\n\nDate: 二零二六年五月十八日 星期一\nWeather: 北京今天十七到二十七度，多云，空气优良\nNews:\n1. 财经消息：我国离境退税政策将迎来优化升级，进一步激活入境消费潜力。同时，上交所组织国际投资者赴境内调研上市公司，吸引更多境外中长期资金入市。\n2. AI与能源领域：国家出台人工智能与能源双向赋能行动方案，算力设施建设保持热度，绿电储能行业迎来新机遇。\n3. 电信新动向：电信运营商纷纷推出词元套餐，从流量经营转向算力经营，抢占大模型时代关键入口。",
      "finish_reason": "tool_calls",
      "reasoning_content": "Now I have the information I need:\n\n1. Date: 2026年5月18日 (星期一) - Today is May 18, 2026, Monday\n2. Beijing weather: 17℃~27℃, cloudy, air quality good\n3. Key news:\n   - 离境退税优化举措推出在即，持续激活入境消费\n   - 上交所组织开展国际投资者赴境内调研上市公司活动\n   - 算力设施建设保持热度，上市公司开拓\"算电协同\"蓝海\n   - 中国电信推出Token套餐，运营商抢抓大模型入口\n   - 长鑫科技存储芯片，DRAM厂商成为全球第四\n\nLet me compose the broadcast text in Chinese with all numbers in Chinese characters.\n\nDate: 二零二六年五月十八日 星期一\nWeather: 北京今天十七到二十七度，多云，空气优良\nNews:\n1. 财经消息：我国离境退税政策将迎来优化升级，进一步激活入境消费潜力。同时，上交所组织国际投资者赴境内调研上市公司，吸引更多境外中长期资金入市。\n2. AI与能源领域：国家出台人工智能与能源双向赋能行动方案，算力设施建设保持热度，绿电储能行业迎来新机遇。\n3. 电信新动向：电信运营商纷纷推出词元套餐，从流量经营转向算力经营，抢占大模型时代关键入口。",
      "reasoning_details": [
        {
          "signature": "cb5ce48aaabc527f68bee84fa5024f82a8cb7d53334e2f0a2cc846da93cff666",
          "thinking": "Now I have the information I need:\n\n1. Date: 2026年5月18日 (星期一) - Today is May 18, 2026, Monday\n2. Beijing weather: 17℃~27℃, cloudy, air quality good\n3. Key news:\n   - 离境退税优化举措推出在即，持续激活入境消费\n   - 上交所组织开展国际投资者赴境内调研上市公司活动\n   - 算力设施建设保持热度，上市公司开拓\"算电协同\"蓝海\n   - 中国电信推出Token套餐，运营商抢抓大模型入口\n   - 长鑫科技存储芯片，DRAM厂商成为全球第四\n\nLet me compose the broadcast text in Chinese with all numbers in Chinese characters.\n\nDate: 二零二六年五月十八日 星期一\nWeather: 北京今天十七到二十七度，多云，空气优良\nNews:\n1. 财经消息：我国离境退税政策将迎来优化升级，进一步激活入境消费潜力。同时，上交所组织国际投资者赴境内调研上市公司，吸引更多境外中长期资金入市。\n2. AI与能源领域：国家出台人工智能与能源双向赋能行动方案，算力设施建设保持热度，绿电储能行业迎来新机遇。\n3. 电信新动向：电信运营商纷纷推出词元套餐，从流量经营转向算力经营，抢占大模型时代关键入口。",
          "type": "thinking"
        }
      ],
      "tool_calls": [
        {
          "id": "call_function_0f8a0exhvgrk_1",
          "call_id": "call_function_0f8a0exhvgrk_1",
          "response_item_id": "fc_function_0f8a0exhvgrk_1",
          "type": "function",
          "function": {
            "name": "text_to_speech",
            "arguments": "{\"text\": \"\\u65e9\\u4e0a\\u597d\\uff0cK.W.\\uff01\\u4eca\\u5929\\u7684\\u64ad\\u62a5\\u6765\\u4e86\\u3002\\n\\n\\u4eca\\u5929\\u662f\\u4e8c\\u96f6\\u4e8c\\u516d\\u5e74\\u4e94\\u6708\\u5341\\u516b\\u65e5\\uff0c\\u661f\\u671f\\u4e00\\u3002\\n\\n\\u5148\\u8bf4\\u5929\\u6c14\\uff0c\\u5317\\u4eac\\u4eca\\u5929\\u591a\\u4e91\\uff0c\\u6c14\\u6e29\\u5341\\u4e03\\u5230\\u4e8c\\u5341\\u4e03\\u5ea6\\uff0c\\u7a7a\\u6c14\\u8d28\\u91cf\\u4e0d\\u9519\\uff0c\\u53ef\\u4ee5\\u51fa\\u95e8\\u900f\\u900f\\u6c14\\u3002\\n\\n\\u4eca\\u5929\\u7684\\u51e0\\u6761\\u91cd\\u8981\\u6d88\\u606f\\uff1a\\n\\n\\u8d22\\u7ecf\\u65b9\\u9762\\uff1a\\u6211\\u56fd\\u79bb\\u5883\\u9000\\u7a0e\\u653f\\u7b56\\u5c06\\u8fce\\u6765\\u4f18\\u5316\\u5347\\u7ea7\\uff0c\\u8fdb\\u4e00\\u6b65\\u6fc0\\u6d3b\\u5165\\u5883\\u6d88\\u8d39\\u6f5c\\u529b\\u3002\\u540c\\u65f6\\uff0c\\u4e0a\\u4ea4\\u6240\\u7ec4\\u7ec7\\u56fd\\u9645\\u6295\\u8d44\\u8005\\u8d74\\u5883\\u5185\\u8c03\\u7814\\u4e0a\\u5e02\\u516c\\u53f8\\u6d3b\\u52a8\\uff0c\\u63a8\\u52a8\\u8d44\\u672c\\u5e02\\u573a\\u9ad8\\u6c34\\u5e73\\u5bf9\\u5916\\u5f00\\u653e\\u3002\\n\\n\\u79d1\\u6280\\u80fd\\u6e90\\u65b9\\u9762\\uff1a\\u56fd\\u5bb6\\u51fa\\u53f0\\u4eba\\u5de5\\u667a\\u80fd\\u4e0e\\u80fd\\u6e90\\u53cc\\u5411\\u8d4b\\u80fd\\u884c\\u52a8\\u65b9\\u6848\\uff0c\\u7b97\\u529b\\u8bbe\\u65bd\\u5efa\\u8bbe\\u6301\\u7eed\\u706b\\u70ed\\uff0c\\u7eff\\u7535\\u50a8\\u80fd\\u884c\\u4e1a\\u8fce\\u6765\\u65b0\\u673a\\u9047\\u3002\\n\\n\\u7535\\u4fe1\\u9886\\u57df\\uff1a\\u5404\\u5927\\u8fd0\\u8425\\u5546\\u7eb7\\u7eb7\\u63a8\\u51fa\\u8bcd\\u5143\\u5957\\u9910\\uff0c\\u4ece\\u6d41\\u91cf\\u7ecf\\u8425\\u8f6c\\u5411\\u7b97\\u529b\\u7ecf\\u8425\\uff0c\\u62a2\\u5360\\u5927\\u6a21\\u578b\\u65f6\\u4ee3\\u7684\\u5173\\u952e\\u5165\\u53e3\\u3002\\n\\n\\u597d\\u4e86\\uff0c\\u4ee5\\u4e0a\\u5c31\\u662f\\u4eca\\u5929\\u7684\\u4e3b\\u8981\\u8d44\\u8baf\\uff0c\\u795d\\u4f60\\u65b0\\u7684\\u4e00\\u5468\\u5de5\\u4f5c\\u987a\\u5229\\uff01\"}"
          }
        }
      ]
    },
    {
      "role": "tool",
      "name": "text_to_speech",
      "content": "{\"success\": true, \"file_path\": \"/home/kuhnn/.hermes/audio_cache/tts_20260518_033119.ogg\", \"media_tag\": \"[[audio_as_voice]]\\nMEDIA:/home/kuhnn/.hermes/audio_cache/tts_20260518_033119.ogg\", \"provider\": \"edge\", \"voice_compatible\": true}",
      "tool_call_id": "call_function_0f8a0exhvgrk_1"
    },
    {
      "role": "assistant",
      "content": "**K.W. 早安播报（二零二六年五月十八日）**\n\n📅 今天是 **五月十八日 星期一**\n🌤️ 北京：多云，**十七到二十七度**，空气质量良\n\n**今日要闻：**\n\n1. **离境退税政策优化升级** — 我国将推出新一轮离境退税优化举措，进一步激活入境消费潜力，利好免税零售和国货消费领域。\n\n2. **上交所推动资本市场开放** — 组织三十余家国际机构投资者赴境内调研上市公司，深化国际资本与沪市科创企业对接。\n\n3. **算力与能源双向赋能** — 国家发改委等部门联合印发行动方案，推动AI与能源协同发展，绿电储能行业加速布局。\n\n4. **电信运营商抢占AI入口** — 移动、电信等纷纷推出词元套餐，从流量经营转向算力经营。\n\n5. **长鑫科技IPO提速** — 国产存储芯片龙头冲刺科创板上市，拟募资约二百九十五亿元，抢抓存储超级周期机遇。\n\nMEDIA:/home/kuhnn/.hermes/audio_cache/tts_20260518_033119.ogg",
      "reasoning": "The TTS was generated successfully. Let me provide a brief summary of the broadcast content along with the audio file path.",
      "finish_reason": "stop",
      "reasoning_content": "The TTS was generated successfully. Let me provide a brief summary of the broadcast content along with the audio file path.",
      "reasoning_details": [
        {
          "signature": "aa57cd599f5b034d1262f94eceb678d97a560e4aa32f96f31014629708c4598d",
          "thinking": "The TTS was generated successfully. Let me provide a brief summary of the broadcast content along with the audio file path.",
          "type": "thinking"
        }
      ]
    }
  ]
}