Skip to content

Conversation

@jsibbison-square
Copy link
Contributor

@jsibbison-square jsibbison-square commented Jul 2, 2025

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

image

@jsibbison-square jsibbison-square marked this pull request as ready for review July 2, 2025 10:19
// 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;
Copy link
Collaborator

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 :)

Copy link
Contributor Author

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'), {
Copy link
Collaborator

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 :)

@lifeizhou-ap
Copy link
Collaborator

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?

@jsibbison-square jsibbison-square merged commit cf818ad into main Jul 3, 2025
8 checks passed
@jsibbison-square jsibbison-square deleted the jsibbison-20250702-gui-structured-output branch July 3, 2025 00:40
atarantino pushed a commit to atarantino/goose that referenced this pull request Jul 14, 2025
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 2025
kwsantiago pushed a commit to kwsantiago/goose that referenced this pull request Jul 19, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants