Skip to content

examples/voice-pipeline: bump voice to v0.2.0 and migrate off sdk/workflow#60

Merged
lIang70 merged 1 commit into
mainfrom
chore/voice-pipeline-bump-voice
May 7, 2026
Merged

examples/voice-pipeline: bump voice to v0.2.0 and migrate off sdk/workflow#60
lIang70 merged 1 commit into
mainfrom
chore/voice-pipeline-bump-voice

Conversation

@lIang70

@lIang70 lIang70 commented May 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Bump examples/voice-pipeline deps: voice v0.1.0 → v0.2.0, sdk v0.2.0 → v0.2.7, sdkx v0.2.0 → v0.2.5 (voice v0.2.0's minimum sdk).
  • voice.NewPipeline in v0.2.0 takes engine.Engine + agent.Agent instead of workflow.Runtime + workflow.Agent (cf. PR voice: drop workflow dependency, drive turns via agent.Run + engine.Engine [skip-tag:voice] #58 in voice). Rewrites setup.go to build the engine via runner.New(def, factory) and pass an agent.Agent{ID: "voice-agent"} directly.
  • Drops all sdk/workflow imports from this example (workflow is deprecated per repo docs and scheduled for removal in v0.3.0).
  • Replaces the (now-removed) node.NewFactory(node.WithLLMResolver, node.WithScriptRuntime) API with explicit llmnode.Register + scriptnode.Register calls; removes the now-dead _ "sdk/graph/node/scriptnode" blank import in main.go.
  • Adapts StaticProviderStore.GetProviderConfig to the new (ctx, provider, model) signature in sdk v0.2.7.
  • README: drops the workflow.WithMemoryFactory mention and updates the setup.go row in the project-layout table to reflect the new wiring.

StaticProviderStore is kept as-is — sdk/sdkx do not ship a reusable ProviderConfigStore implementation (ProviderConfigStore is interface-only by design).

Test plan

  • GOWORK=off go mod tidy clean
  • GOWORK=off go build ./... passes
  • GOWORK=off go vet ./... passes
  • Manual smoke run with real ByteDance + MiniMax credentials (requires .env — left for reviewer / next session)

Made with Cursor

…kflow

voice v0.1.0 -> v0.2.0 requires sdk v0.2.7 / sdkx v0.2.5, and
voice.NewPipeline now takes engine.Engine + agent.Agent instead of
workflow.Runtime + workflow.Agent. Rewrites setup.go to build a graph
runner via runner.New + explicit node factory registration
(llmnode.Register + scriptnode.Register), drops all sdk/workflow usage,
adapts StaticProviderStore to the new GetProviderConfig(ctx, provider,
model) signature, and updates README to remove workflow references.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lIang70
lIang70 merged commit 49767f6 into main May 7, 2026
6 checks passed
@lIang70
lIang70 deleted the chore/voice-pipeline-bump-voice branch May 7, 2026 06:04
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.

1 participant