zeph-core 0.20.0

Core agent loop, configuration, context builder, metrics, and vault for Zeph
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Task injection from the `/loop` command into the agent run-loop.

/// A raw user prompt injected by the `/loop` command on each tick.
///
/// Carried by [`LoopEvent::TaskInjected`] and dispatched without any prefix
/// (unlike scheduler tasks which prepend [`SCHEDULED_TASK_PREFIX`]).
///
/// [`LoopEvent::TaskInjected`]: super::loop_event::LoopEvent::TaskInjected
/// [`SCHEDULED_TASK_PREFIX`]: super::SCHEDULED_TASK_PREFIX
pub(crate) struct TaskInjection {
    /// The prompt text to inject as a new agent turn.
    pub(crate) prompt: String,
}