Totoro 35023bb908
feat(scheduler): create conversation schedules and support agent self-stop (#6229)
* feat(scheduler): create conversation schedules and support agent self-stop

* fix(scheduler): validate goals and trial requests before dispatch

---------

Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
2026-10-04 06:46:13 +08:00

15 lines
467 B
Python

"""Operator-configured, read-only synthetic material for the scheduled pilot."""
import asyncio
from langchain.tools import tool
from .protocol import PROTOCOL, fixture
@tool
async def read_scheduled_fixture(case_id: str) -> dict:
"""Read one named synthetic pilot document; never read arbitrary files or URLs."""
case = await asyncio.to_thread(fixture, case_id)
return {"synthetic": True, "protocol": PROTOCOL, "case_id": case_id, **case["source"]}