mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-26 21:26:39 +00:00
* 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>
15 lines
467 B
Python
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"]}
|