Skip to content

fix(sequentialagent): correct New godoc placement and copy-pasted error string#1151

Open
dmora wants to merge 1 commit into
google:mainfrom
hulilabs:fix/sequentialagent-godoc-and-error-string
Open

fix(sequentialagent): correct New godoc placement and copy-pasted error string#1151
dmora wants to merge 1 commit into
google:mainfrom
hulilabs:fix/sequentialagent-godoc-and-error-string

Conversation

@dmora

@dmora dmora commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

The // New creates a SequentialAgent. doc comment is attached to the seqAgent type — the live-mode changes inserted the type declaration between the comment and func New, leaving New with only the orphaned "Use the SequentialAgent when..." fragment. This PR reunites the full doc comment with New and gives seqAgent its own comment.

It also fixes the custom-Run guard error string, which reports LoopAgent doesn't allow custom Run implementations from inside sequentialagent.New (copy-paste from loopagent — parallelagent names itself correctly).

No behavior change beyond the error text. go build ./agent/workflowagents/..., go vet, and go test ./agent/workflowagents/... pass; no test asserts the old string.

Found while integrating v1.5.0 into our fork.

…or string

The "New creates a SequentialAgent" doc comment was attached to the
seqAgent type after the live-mode changes inserted the type between the
comment and func New, leaving New with only an orphaned fragment.
Reunite the full doc comment with New and give seqAgent its own comment.

Also fix the custom-Run guard error, which reported "LoopAgent" instead
of "SequentialAgent" (copy-paste from loopagent; parallelagent names
itself correctly).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants