Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cmd/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
)

var (
evalTasks string
evalModel string
evalTags string
evalNoCache bool
evalOutput string
evalTaskDir string
evalListJSON bool
evalTasks string
evalModel string
evalTags string
evalNoCache bool
evalOutput string
evalTaskDir string
evalListJSON bool
evalResultsJSON bool
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/preflight_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
// EnginePreflightReportWithSettings. We assert against a local shape to
// avoid coupling the test to the exact gateway/eyrie import path.
type preflightReportShape struct {
Ready bool `json:"ready"`
Ready bool `json:"ready"`
Checks []preflightCheckShape `json:"checks"`
}

Expand Down
14 changes: 7 additions & 7 deletions internal/config/ecosystem_report.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

// EcosystemReport is the structured view of the ecosystem panel.
type EcosystemReport struct {
Eyre EcosystemEyrie `json:"eyrie"`
Yaad EcosystemYaad `json:"yaad"`
Tok EcosystemTok `json:"tok"`
Eyre EcosystemEyrie `json:"eyrie"`
Yaad EcosystemYaad `json:"yaad"`
Tok EcosystemTok `json:"tok"`
}

type EcosystemEyrie struct {
Expand All @@ -26,13 +26,13 @@ type EcosystemEyrie struct {
}

type EcosystemYaad struct {
Ready bool `json:"ready"`
Status string `json:"status,omitempty"`
Ready bool `json:"ready"`
Status string `json:"status,omitempty"`
}

type EcosystemTok struct {
Embedded bool `json:"embedded"`
SampleTokens int `json:"sample_tokens"`
Embedded bool `json:"embedded"`
SampleTokens int `json:"sample_tokens"`
}

// BuildEcosystemReport returns a structured ecosystem report.
Expand Down
19 changes: 9 additions & 10 deletions internal/executiongraph/state_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"fmt"
"sync"
"time"

)

// StateGraph represents a LangGraph-style state graph for agent orchestration.
Expand All @@ -22,11 +21,11 @@ type StateGraph struct {

// GraphNode represents a node in the orchestration graph.
type GraphNode struct {
ID string
Type string
Name string
Handler NodeHandler
Metadata map[string]interface{}
ID string
Type string
Name string
Handler NodeHandler
Metadata map[string]interface{}
}

// GraphEdge represents a connection between nodes with optional conditions.
Expand All @@ -44,10 +43,10 @@ type NodeHandler func(ctx context.Context, state *GraphState) (*NodeResult, erro

// NodeResult contains the result of a node execution.
type NodeResult struct {
NextNode string
State map[string]interface{}
Messages []Message
Error error
NextNode string
State map[string]interface{}
Messages []Message
Error error
}

// GraphState holds the shared state across the graph execution.
Expand Down
10 changes: 5 additions & 5 deletions internal/executiongraph/state_graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestStateGraph_BasicExecution(t *testing.T) {
Handler: func(ctx context.Context, state *GraphState) (*NodeResult, error) {
return &NodeResult{
NextNode: "end", // Explicitly go to end
State: map[string]interface{}{"visited_start": true},
State: map[string]interface{}{"visited_start": true},
}, nil
},
})
Expand All @@ -24,9 +24,9 @@ func TestStateGraph_BasicExecution(t *testing.T) {
Type: "end",
Handler: func(ctx context.Context, state *GraphState) (*NodeResult, error) {
return &NodeResult{
NextNode: "end", // This breaks the loop internally in our mock, but we'll manually check. Wait.
// Ah, the loop condition is 'currentNode != "end"'.
// It NEVER executes the "end" node.
NextNode: "end", // This breaks the loop internally in our mock, but we'll manually check. Wait.
// Ah, the loop condition is 'currentNode != "end"'.
// It NEVER executes the "end" node.
State: map[string]interface{}{"visited_end": true},
}, nil
},
Expand All @@ -40,5 +40,5 @@ func TestStateGraph_BasicExecution(t *testing.T) {
if state.Data["visited_start"] != true {
t.Error("Expected visited_start to be true")
}
// Since "end" node is skipped by the loop condition 'currentNode != "end"', we only check "start"
// Since "end" node is skipped by the loop condition 'currentNode != "end"', we only check "start"
}
Loading