mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-04-09 03:02:26 -04:00
To keep a persistent backend storage for configuration, we will have to keep a single source of truth. This involves supporting bi-directional conversion for Prompt and Promptsets. This PR make the following changes: * Separate Prompt from PromptConfig * Embed Config in Resources (for both prompt and promptset) * Add `ToConfig()` to extract Config from Resources (for both prompt and promptset)