firebase / genkit

An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to develop, integrate, and test AI features with observability and evaluations. Genkit works with various models and platforms.
Apache License 2.0
775 stars 117 forks source link

[Go] Bring Go Reflection API error handling to parity with JS #399

Open apascal07 opened 5 months ago

apascal07 commented 5 months ago

Catch errors and return a standardized format that the Runner can unwrap.

apascal07 commented 3 weeks ago

@alonsopec89 Please take a look at the error format that the JS runtime returns (it's an error wrapped in an object with multiple fields that the CLI runner then unwraps and makes useful) and make it the same in Go. Right now Go just returns a flat error which doesn't display nicely in the Dev UI AFAIK. Please make sure to repro/test this.