The core and core/vnext packages are deprecated and will be removed in v1.0.0.
Migration Timeline:
- Now (v0.x):
coreandcore/vnextare deprecated with notices - v1.0.0: Only
v1betaAPIs will remain (becoming the primaryv1package)
We're consolidating our APIs for better stability and maintainability:
- Before: Multiple API surfaces (
core,core/vnext,v1beta) - After v1.0: Single, stable
v1API (currentlyv1beta)
Old Code (core/vnext):
import "github.com/agenticgokit/agenticgokit/core/vnext"
agent, err := vnext.NewBuilder("assistant").
WithConfig(config).
Build()New Code (v1beta):
import "github.com/agenticgokit/agenticgokit/v1beta"
agent, err := v1beta.NewBuilder("assistant").
WithLLM("ollama", "gemma3:1b").
Build()- import "github.com/agenticgokit/agenticgokit/core"
- import "github.com/agenticgokit/agenticgokit/core/vnext"
+ import "github.com/agenticgokit/agenticgokit/v1beta"vnext → v1beta:
- agent, err := vnext.NewBuilder("myagent").
- WithConfig(&vnext.Config{...}).
+ agent, err := v1beta.NewBuilder("myagent").
+ WithLLM("openai", "gpt-4").
Build()core → v1beta:
- agent, err := core.NewAgent(config)
+ agent, err := v1beta.NewBuilder("myagent").
+ WithLLM("openai", "gpt-4").
+ Build()vnext.Config → v1beta.Config:
- config := &vnext.Config{
- Name: "assistant",
- LLM: vnext.LLMConfig{
- Provider: "openai",
- Model: "gpt-4",
- },
- }
+ agent, err := v1beta.NewBuilder("assistant").
+ WithLLM("openai", "gpt-4").
+ WithAPIKey(os.Getenv("OPENAI_API_KEY")).
+ Build()vnext streaming → v1beta streaming:
- stream, err := agent.RunStream(ctx, "Hello")
+ stream, err := agent.RunStream(ctx, "Hello")
for chunk := range stream.Chunks() {
- if chunk.Type == vnext.ChunkTypeDelta {
+ if chunk.Type == v1beta.ChunkTypeDelta {
fmt.Print(chunk.Delta)
}
}The streaming API is very similar, just update the package import!
vnext workflows → v1beta workflows:
- workflow, err := vnext.NewSequentialWorkflow(&vnext.WorkflowConfig{
+ workflow, err := v1beta.NewSequentialWorkflow(&v1beta.WorkflowConfig{
Name: "pipeline",
Timeout: 300 * time.Second,
})
- workflow.AddStep(vnext.WorkflowStep{Name: "step1", Agent: agent1})
+ workflow.AddStep(v1beta.WorkflowStep{Name: "step1", Agent: agent1})The v1beta API provides the same functionality as vnext:
- ✅ Streaming execution
- ✅ Multi-agent workflows (Sequential, Parallel, DAG, Loop)
- ✅ Subworkflows
- ✅ Memory and RAG
- ✅ Tool integration (MCP)
- ✅ Multiple LLM providers
- ❌
corepackage (entire package removed) - ❌
core/vnextpackage (entire package removed)
- ✅
v1betabecomes primaryv1package - ✅ All v1beta functionality preserved
- ✅ Import path becomes:
github.com/agenticgokit/agenticgokit/v1
- Identify all uses of
coreorcore/vnextimports - Update imports to
v1beta - Update agent creation to use
v1beta.NewBuilder(name) - Update config structs to v1beta types
- Update streaming code (minimal changes needed)
- Update workflow code (minimal changes needed)
- Test your application
- Remove old import statements
- Documentation: See v1beta/README.md for complete API reference
- Examples: Check examples/ for working code samples
- Issues: GitHub Issues
- Discussions: GitHub Discussions
| Feature | core/vnext | v1beta | Notes |
|---|---|---|---|
| Package | core/vnext |
v1beta |
Import path change |
| Agent Creation | NewBuilder(name) |
NewBuilder(name) |
Builder pattern |
| Config | WithConfig(&Config{...}) |
Fluent methods | More ergonomic |
| Streaming | RunStream() |
RunStream() |
Same API |
| Workflows | NewSequentialWorkflow() |
NewSequentialWorkflow() |
Same API |
| Subworkflows | NewSubWorkflowAgent() |
NewSubWorkflowAgent() |
Same API |
| LLM Providers | OpenAI, Ollama, Azure | OpenAI, Ollama, Azure, HuggingFace | More providers |
- v0.x (Current): All packages available, deprecation warnings
- v1.0 (Future): Only v1 (formerly v1beta) available
- After v1.0: No support for
coreorcore/vnext
We recommend migrating to v1beta immediately to ensure a smooth transition to v1.0.