Documentation
¶
Overview ¶
Package workflow implements agent collaboration workflows
Package workflow implements agent collaboration workflows
Index ¶
Constants ¶
const ( LabelProposal = "proposal" LabelProposalReady = "proposal-ready" )
Label constants for proposal workflow
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalysisCycle ¶
type AnalysisCycle struct {
// contains filtered or unexported fields
}
AnalysisCycle represents Amara's weekly analysis workflow
func NewAnalysisCycle ¶
NewAnalysisCycle creates a new analysis cycle workflow
func (*AnalysisCycle) Run ¶
func (ac *AnalysisCycle) Run(ctx context.Context) (*AnalysisResult, error)
Run executes Amara's analysis
type AnalysisResult ¶
type AnalysisResult struct {
Report string
Recommendations []string
CLAUDEMDUpdates map[string]string // agent -> update content
}
AnalysisResult contains the outcome of the analysis
type ProposalResult ¶ added in v0.8.0
type ProposalResult struct {
IssueNumber int
Analysis string
Proposal string
Success bool
Error error
}
ProposalResult contains the outcome of the proposal workflow
type ProposalWorkflow ¶ added in v0.8.0
type ProposalWorkflow struct {
// contains filtered or unexported fields
}
ProposalWorkflow represents the proposal analysis and generation workflow
func NewProposalWorkflow ¶ added in v0.8.0
func NewProposalWorkflow(agents *agent.Agents, logMgr *logger.Manager, ghClient *github.Client) *ProposalWorkflow
NewProposalWorkflow creates a new proposal workflow
func (*ProposalWorkflow) HandleLabeledEvent ¶ added in v0.8.0
func (pw *ProposalWorkflow) HandleLabeledEvent(ctx context.Context, event *github.IssuesEvent) error
HandleLabeledEvent processes an issue labeled event and triggers workflow if applicable
func (*ProposalWorkflow) Run ¶ added in v0.8.0
func (pw *ProposalWorkflow) Run(ctx context.Context, issueNumber int) (*ProposalResult, error)
Run executes the proposal workflow for a given issue
type ReviewCycle ¶
type ReviewCycle struct {
MaxIterations int
// contains filtered or unexported fields
}
ReviewCycle represents a Yuki -> Priya review cycle
func NewReviewCycle ¶
func NewReviewCycle(agents *agent.Agents, logMgr *logger.Manager) *ReviewCycle
NewReviewCycle creates a new review cycle workflow
func (*ReviewCycle) Run ¶
func (rc *ReviewCycle) Run(ctx context.Context, task string) (*ReviewResult, error)
Run executes the review cycle for a given task
type ReviewResult ¶
type ReviewResult struct {
Approved bool
Iterations int
Escalated bool
FinalOutput string
History []ReviewRound
}
ReviewResult contains the outcome of a review cycle