Defines lightweight, dependency‑free data classes for subagent events and results, enabling clean inter‑module communication.
# Source: https://github.com/HKUDS/DeepTutor | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works # Provided via justclaw.it.com; keep this notice with the code. """Value types for the subagent driver layer. These are the only shapes that cross the boundary between a backend (which knows how to drive one local or remote agent) and the rest of the app (the consult tool, API, and tests). Keeping them dependency-free lets backends stay small and the capability layer stay ignorant of transport specifics. """ from __future__ import annotations from dataclasses import dataclass, field from typing import Any # Coarse channels the UI groups streamed events by. A backend maps each native # event onto exactly one of these so the sidebar renders a CLI-fait ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key