pub struct CaptureContent;Expand description
Marker service: the host records message content (rendered prompts, tool results, retrieval queries), so nodes should also report it as progress.
Hosts register it only when content capture is on (for example
OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT=SPAN_ONLY). Without it, nodes
skip building that progress entirely, so capture costs nothing when off.
Content progress carries the same masked values as node outputs (secret
values serialize as ******).
let services = graphrt_core::Services::new().with(graphrt_core::node::CaptureContent);
let ctx = graphrt_core::NodeContext::for_test("n", graphrt_core::VariablePool::new())
.with_services(std::sync::Arc::new(services));
assert!(ctx.captures_content());Trait Implementations§
Source§impl Clone for CaptureContent
impl Clone for CaptureContent
impl Copy for CaptureContent
Source§impl Debug for CaptureContent
impl Debug for CaptureContent
Source§impl Default for CaptureContent
impl Default for CaptureContent
impl Eq for CaptureContent
Source§impl PartialEq for CaptureContent
impl PartialEq for CaptureContent
impl StructuralPartialEq for CaptureContent
Auto Trait Implementations§
impl Forget for CaptureContent
impl Freeze for CaptureContent
impl Move for CaptureContent
impl RefUnwindSafe for CaptureContent
impl Send for CaptureContent
impl Sync for CaptureContent
impl Unpin for CaptureContent
impl UnsafeUnpin for CaptureContent
impl UnwindSafe for CaptureContent
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key and return true if they are equal.