Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

[Feature] Optimize DSPy Agent Prompts via AgentGateway Proxy #17

@christso

Description

@christso

Problem

DSPy-based agents (e.g., ReAct for code gen) need prompt optimization while routing through AgentGateway for secure A2A/MCP comms, but current opt lacks protocol-aware tuning.

Proposed Solution

Add --mode dspy-agent to bbeval opt:

  • Setup: Wrap DSPy module (e.g., ReAct) with Agenspy for MCP output; proxy via AgentGateway endpoint (--gateway-url http://localhost:8080).
  • Optimization: Tune agent instructions/tools using bbeval metric; enforce guidelines (e.g., "use MCP for tool calls").
  • Output: JSON config with optimized signatures + gateway routes.
  • Example: Optimize coding agent on 10 tasks, evaluating end-to-end latency/accuracy.

Benefits: Production-ready tuning for scaled, observable agents; supports <10 LLM calls.

Resources

AgentGateway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions