pub struct AgentContext {
pub issue_number: u32,
pub issue_title: String,
pub issue_body: String,
pub branch: String,
pub pr_number: Option<u32>,
pub test_command: Option<String>,
pub lint_command: Option<String>,
pub review_findings: Option<Vec<ReviewFinding>>,
pub cycle: u32,
pub target_repo: Option<String>,
pub issue_source: String,
pub base_branch: String,
}Expand description
Context passed to agent prompt builders.
Fields§
§issue_number: u32§issue_title: String§issue_body: String§branch: String§pr_number: Option<u32>§test_command: Option<String>§lint_command: Option<String>§review_findings: Option<Vec<ReviewFinding>>§cycle: u32§target_repo: Option<String>When set, indicates this is a multi-repo pipeline where the PR lives in a different repo than the issue.
issue_source: StringIssue source: “github” or “local”.
base_branch: StringThe default branch name (e.g. “main” or “master”).
Trait Implementations§
Source§impl Clone for AgentContext
impl Clone for AgentContext
Source§fn clone(&self) -> AgentContext
fn clone(&self) -> AgentContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentContext
impl RefUnwindSafe for AgentContext
impl Send for AgentContext
impl Sync for AgentContext
impl Unpin for AgentContext
impl UnsafeUnpin for AgentContext
impl UnwindSafe for AgentContext
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