examples/voice-pipeline: bump voice to v0.2.0 and migrate off sdk/workflow#60
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/voice-pipelinedeps:voicev0.1.0 → v0.2.0,sdkv0.2.0 → v0.2.7,sdkxv0.2.0 → v0.2.5 (voice v0.2.0's minimum sdk).voice.NewPipelinein v0.2.0 takesengine.Engine+agent.Agentinstead ofworkflow.Runtime+workflow.Agent(cf. PR voice: drop workflow dependency, drive turns via agent.Run + engine.Engine [skip-tag:voice] #58 in voice). Rewritessetup.goto build the engine viarunner.New(def, factory)and pass anagent.Agent{ID: "voice-agent"}directly.sdk/workflowimports from this example (workflow is deprecated per repo docs and scheduled for removal in v0.3.0).node.NewFactory(node.WithLLMResolver, node.WithScriptRuntime)API with explicitllmnode.Register+scriptnode.Registercalls; removes the now-dead_ "sdk/graph/node/scriptnode"blank import inmain.go.StaticProviderStore.GetProviderConfigto the new(ctx, provider, model)signature in sdk v0.2.7.workflow.WithMemoryFactorymention and updates thesetup.gorow in the project-layout table to reflect the new wiring.StaticProviderStoreis kept as-is — sdk/sdkx do not ship a reusableProviderConfigStoreimplementation (ProviderConfigStoreis interface-only by design).Test plan
GOWORK=off go mod tidycleanGOWORK=off go build ./...passesGOWORK=off go vet ./...passes.env— left for reviewer / next session)Made with Cursor