Genkit for Go 1.13.1

Last reviewed Sep 23, 2026

Export as PDF

Prompt Details

Prompt Composition

2prompts
  1. Go 1.27130 lines · 5.5K tokens
  2. Genkit for Go 1.13.1145 lines · 6.4K tokens
Total275 lines · 11.9K tokens

CWE Coverage

  • 15
  • 20
  • 22
  • 59
  • 78
  • 79
  • 89
  • 94
  • 117
  • 190
  • 201
  • 208
  • 209
  • 250
  • 252
  • 257
  • 287
  • 295
  • 307
  • 311
  • 323
  • 327
  • 338
  • 345
  • 347
  • 352
  • 362
  • 367
  • 378
  • 426
  • 444
  • 488
  • 489
  • 494
  • 532
  • 639
  • 674
  • 732
  • 759
  • 770
  • 772
  • 778
  • 807
  • 841
  • 862
  • 863
  • 915
  • 916
  • 918
  • 922
  • 942
  • 1004
  • 1275
  • 1395
  • 1426
  • 1427

Prompt Preview

Apply the Go 1.27 baseline first. These rules cover Genkit for Go 1.13.1 models, tools, flows, experimental agents and middleware, resumable and detached work, HTTP and streaming surfaces, MCP, media downloads, A2UI, state, and telemetry.

Version and capability boundary

  • Record github.com/firebase/genkit/go in go.mod and go.sum, and take Genkit fixes from newer releases after reading their notes. The module's Go 1.25.0 minimum is a build floor, not a promise of continuing Go 1.25 security support.
  • Import the A2UI preview from github.com/firebase/genkit/go/plugins/a2ui/exp; do not deploy retracted 1.13.0, which shipped it at the non-exp path.
  • Treat ai/exp, genkit/exp, plugins/middleware/exp, plugins/firebase/exp, and plugins/a2ui/exp as experimental contracts that may change in a minor release; pin the exact module, protocol, store, renderer, and client versions and test compatibility before upgrading.
  • Inventory model, provider, retriever, evaluator, storage, stream-manager, middleware, and telemetry plugins separately and register only the capabilities each deployment needs.
  • Fail startup when a required model, schema, tool, agent, middleware, catalog, store capability, or provider configuration is absent or resolves differently from reviewed policy.

Model, prompt, and output authority

  • Construct genkit.Init, model references, system instructions, .prompt assets, tool and agent lists, middleware, provider endpoints, and runtime configuration from trusted server policy; finish shared registrations before serving requests and keep