feat: 添加定时任务调度器和相关配置
- 新增定时任务调度器(agentmain.py):支持基于时间戳的任务自动执行 - 添加scheduled_task_sop.md:定时任务执行流程文档 - 优化agent_loop.py:移除错误提示emoji - 调整sidercall.py:降低context_win至10000 - 更新.gitignore:忽略tasks目录,白名单scheduled_task_sop.md
This commit is contained in:
@@ -28,7 +28,7 @@ class SiderLLMSession:
|
||||
return full_text
|
||||
|
||||
class ClaudeSession:
|
||||
def __init__(self, api_key, api_base, model="claude-opus", context_win=12000):
|
||||
def __init__(self, api_key, api_base, model="claude-opus", context_win=10000):
|
||||
self.api_key, self.api_base, self.default_model, self.context_win = api_key, api_base.rstrip('/'), model, context_win
|
||||
self.raw_msgs, self.lock = [], threading.Lock()
|
||||
def _trim_messages(self, messages):
|
||||
|
||||
Reference in New Issue
Block a user