# DSPy vs googleapis/go-genai — Fit & Features

Canonical: https://trutool.co/compare/dspy-vs-googleapis-go-genai
Author: Snehil (https://trutool.co/authors/snehil)

Compare DSPy and googleapis/go-genai by use case, features, limitations, and evaluation questions.

## Compare fit, features, and limitations

### DSPy
Program and optimize language model pipelines with structured modules.
Best fit: Developers composing agents, structured model outputs, and tool workflows.
- LM programs
- Pipeline optimization
- Evaluation workflows
Before you choose: Check licensing, provider compatibility, maintenance, and tool permissions. Test failure recovery before enabling agent actions.
Pricing: https://dspy.ai/current/
- [Read DSPy profile](https://trutool.co/tools/dspy): Read DSPy profile

### googleapis/go-genai
Google Gen AI Go SDK provides an interface for developers to integrate Google's generative models into their Go applications.
Best fit: People and teams evaluating ai agent frameworks for a specific workflow.
- Core product workflow
Before you choose: Test a representative task, inspect outputs, and confirm integrations, permissions, data handling, licensing, and current costs.
Pricing: https://github.com/pricing
- [Read googleapis/go-genai profile](https://trutool.co/tools/googleapis-go-genai): Read googleapis/go-genai profile
