Organize Agentbox runtime code

Co-authored-by: codegirl007 <codegirl-007@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-08-18 06:03:59 +00:00
co-authored by codegirl007
parent f2fee5d26b
commit 4d2fb4a733
22 changed files with 1358 additions and 878 deletions
+3
View File
@@ -14,6 +14,7 @@ type Observation struct {
PreviousActions []environment.InputAction
}
// Step is the compact history passed back to an agent on its next decision.
type Step struct {
Number int
Timestamp time.Time
@@ -22,12 +23,14 @@ type Step struct {
Action *environment.InputAction
}
// Decision contains either one action or Done. Returning neither is invalid.
type Decision struct {
Reason string
Action *environment.InputAction
Done bool
}
// Agent chooses one backend-neutral action from the latest observation.
type Agent interface {
Name() string
NextAction(