Skip to content

refactor(engine): consolidate prompt entry into RunRequest - #465

Merged
jhrozek merged 1 commit into
mainfrom
refactor/issue-461-run-request
Aug 12, 2026
Merged

jhrozek merged 1 commit into
mainfrom
refactor/issue-461-run-request

Conversation

@JAORMX

@JAORMX JAORMX commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replace Engine.Run, Engine.RunContent, and Engine.RunContentWith with one canonical Engine.Run(ctx, sess, ws, RunRequest) entry point
  • move text, multimodal parts, token override, extra tools, and ask-ID discriminator into RunRequest
  • keep ResumeApproval as the distinct awaiting-only run entry
  • update all production, adapter, demo, perf, and test callers
  • update the engine API baseline, compatibility changelog, AGENTS.md, and living architecture docs
  • add regression coverage proving per-call token ceilings survive structured-output retries and empty-result salvage

This is an intentional breaking change to the importable engine API. It is phase 1 of the execution-environment refactor tracked in #462.

Verification

  • task build
  • task lint
  • task test
  • task api:check
  • task docs
  • go run ./cmd/mecademo
  • git diff --check

Closes #461

@jhrozek jhrozek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran a panel review (Spec vs #461, Standards vs AGENTS.md/ADRs, Domain via software-architect/go-architect/library-reuse/code-duplication reviewers) — clean, faithful, mechanical consolidation of Run/RunContent/RunContentWith into a single RunRequest-based Engine.Run. No ship-blockers found. All CI checks green.

@jhrozek
jhrozek merged commit bfe36aa into main Aug 12, 2026
16 checks passed
@jhrozek
jhrozek deleted the refactor/issue-461-run-request branch August 12, 2026 07:53
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.

refactor(engine): consolidate prompt entry into RunRequest

2 participants