Skip to main content

PromptEvidence

Struct PromptEvidence 

Source
pub struct PromptEvidence {
Show 29 fields pub user_goal: Option<String>, pub project_summary: Option<String>, pub node_goal: Option<String>, pub output_files: Vec<String>, pub context_files: Vec<String>, pub verifier_diagnostics: Option<String>, pub previous_attempts: Vec<CorrectionAttemptRecord>, pub previous_attempt_count: usize, pub plugin_correction_fragment: Option<String>, pub legal_support_files: Vec<String>, pub existing_file_contents: Vec<(String, String)>, pub dependency_expectations: Option<DependencyExpectation>, pub rejected_bundle_summary: Option<String>, pub solo_file_path: Option<String>, pub solo_language: Option<String>, pub working_dir: Option<String>, pub active_plugins: Vec<String>, pub interface_signature: Option<String>, pub invariants: Option<String>, pub forbidden_patterns: Option<String>, pub weighted_tests: Option<String>, pub workspace_import_hints: Option<String>, pub evidence_section: Option<String>, pub error_feedback: Option<String>, pub restriction_map_context: Option<String>, pub project_file_tree: Option<String>, pub build_test_output: Option<String>, pub owner_plugin: Option<String>, pub energy_v_syn: Option<f32>,
}
Expand description

Evidence inputs for the prompt compiler (PSP-7 §5).

Each prompt family draws from a different subset of these fields. The compiler ignores fields that are irrelevant for the selected intent.

Fields§

§user_goal: Option<String>

The user’s high-level goal or request.

§project_summary: Option<String>

Project structure summary (file tree, detected languages, etc.).

§node_goal: Option<String>

Node-scoped goal for actuator/verifier prompts.

§output_files: Vec<String>

Output files this node is expected to produce.

§context_files: Vec<String>

Context files the node should read.

§verifier_diagnostics: Option<String>

Verifier diagnostics from the last verification pass.

§previous_attempts: Vec<CorrectionAttemptRecord>

Previous correction attempt records for retry prompts.

§previous_attempt_count: usize

Number of previous correction attempts (used when full records are unavailable).

§plugin_correction_fragment: Option<String>

Plugin-contributed correction guidance.

§legal_support_files: Vec<String>

Legal support files declared by the plugin.

§existing_file_contents: Vec<(String, String)>

Existing file contents for context injection.

§dependency_expectations: Option<DependencyExpectation>

Dependency expectations for the current task.

§rejected_bundle_summary: Option<String>

Bundle that was rejected (for retarget prompts).

§solo_file_path: Option<String>

Solo mode file path.

§solo_language: Option<String>

Solo mode language hint.

§working_dir: Option<String>

Working directory path for context-aware prompts.

§active_plugins: Vec<String>

Active language plugins (e.g. ["rust", "python"]).

§interface_signature: Option<String>

Contract interface signature for actuator/verifier prompts.

§invariants: Option<String>

Contract invariants for actuator/verifier prompts.

§forbidden_patterns: Option<String>

Contract forbidden patterns for actuator/verifier prompts.

§weighted_tests: Option<String>

Contract weighted tests for verifier prompts.

§workspace_import_hints: Option<String>

Workspace import hints for cross-module references.

§evidence_section: Option<String>

Pre-formatted evidence section for architect prompts.

§error_feedback: Option<String>

Error feedback from previous planning attempts.

§restriction_map_context: Option<String>

Restriction map context for correction prompts (pre-formatted).

§project_file_tree: Option<String>

Project file tree for correction prompts (pre-formatted lines).

§build_test_output: Option<String>

Raw build/test output for correction prompts (truncated).

§owner_plugin: Option<String>

Owner plugin name (e.g. “rust”, “python”) for language-specific guidance.

§energy_v_syn: Option<f32>

Syntactic energy score from the last verification pass.

Trait Implementations§

Source§

impl Clone for PromptEvidence

Source§

fn clone(&self) -> PromptEvidence

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PromptEvidence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PromptEvidence

Source§

fn default() -> PromptEvidence

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PromptEvidence

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PromptEvidence

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,