Skip to content

Conversation

@dianed-square
Copy link
Contributor

@dianed-square dianed-square commented Aug 5, 2025

This PR documents new recipe features:

  • Extension secrets
  • Structured output (extended existing docs)
  • Parallel sub-recipe execution

Also documents the indent() filter for multi-line values per #3802.

Documentation updates:

  • documentation/docs/guides/recipes/recipe-reference.md:
    • Add Extension Secrets section
    • Add indent() Filter For Multi-Line Value section
    • Add sequential_when_repeated sub-recipe field
    • Cross link to structured output
  • documentation/docs/guides/recipes/session-recipes.md:
    • Add Structured Output for Automation section
    • Cross link to extension secrets
  • documentation/docs/guides/recipes/sub-recipes.md:
    • Add Experimental warning
    • Replace "automatic inheritance" with "context-based" parameter passing
    • Add Context-Based Passing example
    • Cross link to indent filter and running sub-recipes in parallel
  • documentation/docs/tutorials/recipes-tutorial.md:
    • Add example extension secret
  • documentation/docs/tutorials/sub-recipes-in-parallel.md:
    • New topic
  • documentation/docs/guides/recipes/index.md:
    • Add Running Sub-Recipes in Parallel card

@github-actions
Copy link
Contributor

github-actions bot commented Aug 5, 2025

PR Preview Action v1.6.0
Preview removed because the pull request was closed.
2025-08-06 20:20 UTC

path: "./analyze.yaml"
values:
content: |
{{ raw_data | indent(2) }}
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap Aug 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! thanks for adding this in!

{{ raw_data | indent(2) }} mabye have more indent to align with the content

      content: |
        {{ raw_data | indent(2) }}

### Parameter Handling

Sub-recipes receive parameters in two ways:
Parameters received by sub-recipes can be used in prompts and instructions using `{{ parameter_name }}` syntax. Sub-recipes receive parameters in two ways:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for sub-recipes, they can run by itself.
So if they have their own params and used as sub-recipe, we can pass in the main recipe via

values:
      content:  content_value

There is another usage, the parameter value can be passed via session context so that the user does not have to specify.

I am sorry if I have confused you. I'll create some example recipe and share with you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 Replaced "automatic inheritance" with "context-based parameters"


1. **Pre-set values**: Fixed parameter values defined in the `values` field are automatically provided and cannot be overridden at runtime
2. **Automatic parameter inheritance**: Sub-recipes automatically have access to all parameters passed to the main recipe at runtime.
2. **Automatic parameter inheritance**: Sub-recipes automatically have access to all parameters passed to the main recipe at runtime
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dianed-square,

Sub-recipes automatically have access to all parameters passed to the main recipe at runtime
Comment

Sub-recipes will not have access to all parameters passed to the main recipe automatically. It still requires to pass along via Pre-set values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lifeizhou-ap ! I removed mention of "automatic inheritance" (also simplified the context-based parameter example)

@lifeizhou-ap
Copy link
Collaborator

Hi @dianed-square ,

Thank you for the amazing work! I saw the PR is still in draft mode, I will review it when it is ready.

https://block.github.io/goose/docs/guides/recipes/sub-recipes/. Would you please also add Experimental on this page title as well? As Sub-recipe is quite new and we would like to get more user feedback and testing to polish it. Thank you!

@dianed-square
Copy link
Contributor Author

@blackgirlbytes -- just want to run this by you first! Do you think it's better move the Sub-Recipes topic to the Experimental section or would you prefer to keep in place and just add the Experimental warning?

https://block.github.io/goose/docs/guides/recipes/sub-recipes/. Would you please also add Experimental on this page title as well? As Sub-recipe is quite new and we would like to get more user feedback and testing to polish it. Thank you!

@blackgirlbytes
Copy link
Contributor

@blackgirlbytes -- just want to run this by you first! Do you think it's better move the Sub-Recipes topic to the Experimental section or would you prefer to keep in place and just add the Experimental warning?

https://block.github.io/goose/docs/guides/recipes/sub-recipes/. Would you please also add Experimental on this page title as well? As Sub-recipe is quite new and we would like to get more user feedback and testing to polish it. Thank you!

hmmm, thanks for double checking! let's keep it on the recipe section and put an experimental warning. i know for recipes it's important for us to have it all in one spot for visibility's sake @dianed-square

@dianed-square dianed-square marked this pull request as ready for review August 6, 2025 17:17
@dianed-square dianed-square changed the title [WIP] docs: recipe updates docs: recipe updates Aug 6, 2025
@dianed-square dianed-square merged commit b52112c into main Aug 6, 2025
12 checks passed
@dianed-square dianed-square deleted the docs/recipe-updates branch August 6, 2025 20:18
katzdave added a commit that referenced this pull request Aug 6, 2025
* 'main' of github.com:block/goose:
  Upgrade to MCP-UI ~5.6.2 and handle internalized auto iframe resizing (#3889)
  docs: recipe updates (#3844)
  added notes about reducing context window by referencing external files (#3895)
michaelneale added a commit that referenced this pull request Aug 7, 2025
* main:
  Upgrade to MCP-UI ~5.6.2 and handle internalized auto iframe resizing (#3889)
  docs: recipe updates (#3844)
  added notes about reducing context window by referencing external files (#3895)
  Make the window title reflect what we are doing (#3883)
  additional metrics + Ui implementation (#3871)
  feat: Add session description editing functionality (#3819)
  Update filename in contributing docs (#3866)
  Fix voice dictation provider selection bug (#3862)
  doc: Update supported container runtimes (#3874)
  feat: add OAuth provider abstraction for CLI configuration (#3157)
  Don't ignore lockfiles on linux/windows builds (#3859)
  Use RMCP for StreamableHTTP OAuth support (#3845)
  Try to keep key order for Databricks (#3876)
  Fix OpenAI Provider with GitHub Models (#3875)
  Cmd click open finder (#3807)
  fix: recipe parameter form max height and not scrolling (#3879)
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.

4 participants