pub enum SystemRefMode {
Http,
File,
}Expand description
GH #31: where a SystemRef’s content is actually served from.
Variants§
Http
Content is served live by the HTTP surface at SystemRef.uri,
backed by the unchanged EngineState.systems map — no persisted
storage is created for this mode. The engine itself only
constructs the path portion of uri
(/v1/worker/prompt/system?task_id=<id>&attempt=<n>): it has no
knowledge of scheme/host at fetch time, so the HTTP-layer caller
that re-emits this SystemRef (the route handler serving
worker_prompt) is responsible for prefixing scheme://host if a
fully-qualified URI is desired.
File
Content was written once, as a side effect of the fetch that
produced this SystemRef, to a local file under
SystemRefConfig.store_dir; SystemRef.uri is that file’s
file://<path> URI. Re-fetching the same (task_id, attempt)
re-writes the same bytes to the same path — harmless in practice
(SubAgents fetch their prompt once per attempt) but not
deduplicated.
Trait Implementations§
Source§impl Clone for SystemRefMode
impl Clone for SystemRefMode
Source§fn clone(&self) -> SystemRefMode
fn clone(&self) -> SystemRefMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SystemRefMode
Source§impl Debug for SystemRefMode
impl Debug for SystemRefMode
Source§impl<'de> Deserialize<'de> for SystemRefMode
impl<'de> Deserialize<'de> for SystemRefMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SystemRefMode
Source§impl JsonSchema for SystemRefMode
impl JsonSchema for SystemRefMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SystemRefMode
impl PartialEq for SystemRefMode
Source§impl Serialize for SystemRefMode
impl Serialize for SystemRefMode
impl StructuralPartialEq for SystemRefMode
Auto Trait Implementations§
impl Freeze for SystemRefMode
impl RefUnwindSafe for SystemRefMode
impl Send for SystemRefMode
impl Sync for SystemRefMode
impl Unpin for SystemRefMode
impl UnsafeUnpin for SystemRefMode
impl UnwindSafe for SystemRefMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more