-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: GUI can use structured output present in recipes #3218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: GUI can use structured output present in recipes #3218
Conversation
| // Get recipeConfig directly here | ||
| const recipeConfig = window.appConfig?.get?.('recipeConfig'); | ||
| const botPrompt = (recipeConfig as { instructions?: string })?.instructions; | ||
| const responseConfig = (recipeConfig as { response?: { json_schema?: unknown } })?.response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you have to add response attribute on the RecipeConfig interface on the client side, and populate to the object when parsing the deeplink.
If you have tested this and it is works, that means my statement above is wrong :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah it works, recipeConfig gets populated early in the process, its pretty cryptic.
|
|
||
| // Configure session with response config if present | ||
| if (responseConfig?.json_schema) { | ||
| const sessionConfigResponse = await fetch(getApiUrl('/agent/session_config'), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we move this api call to another module? the function is getting longer :)
|
just curious about this feature. It is good to see the output, but from user's prospective, what kind of use case/experience that they want the output? |
Signed-off-by: Adam Tarantino <[email protected]>
Signed-off-by: Soroosh <[email protected]>
Signed-off-by: Kyle Santiago <[email protected]>
This PR doesn't give the gui the ability to view or edit structured output but if structured output is part of the recipe it will now be used. Support in CLI was added in #3188