返回 Skill 列表
extension
分类: 开发与工程无需 API Key

log-agent

将代理运行日志记录到.tmp/logs/中。使用此功能来维护代理操作和错误的审计跟踪。

person作者: jakexiaohubgithub

Log Agent

Overview

This skill provides a standardized way to log agent activities to the filesystem. It creates JSON-formatted log entries in .tmp/logs/ (or a specified directory).

Usage

Log Script

Syntax:

python3 .agent/skills/log-agent/scripts/log_run.py <agent_name> <message> [--log_dir <dir>]

Example:

python3 .agent/skills/log-agent/scripts/log_run.py ParserAgent "Started parsing resume.pdf"

Log Format:

{"timestamp": "2023-10-27T10:00:00", "agent": "ParserAgent", "message": "Started parsing resume.pdf"}