Skip to content

Conversation

@lifeizhou-ap
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap commented Jun 23, 2025

Why
When running a recipe with parameters, it shows error mssage:
Missing definitions for parameters in the recipe file: date

What

  • Removed code to parsing parameter block line by line. The logic seems like: when the "parameters" line is reached, and then return empty parameters.

  • Modified the test cases with correct block section as example so that parameters can be parsed properly

  • Asked a couple questions as inline comments to be confirmed

@lifeizhou-ap lifeizhou-ap changed the title fix: issue when rendering recipe parameters fix: issue when parsing recipe parameters Jun 23, 2025
@lifeizhou-ap lifeizhou-ap requested a review from DOsinga June 23, 2025 03:33
}

fn extract_parameters_from_content(content: &str) -> Result<Option<Vec<RecipeParameter>>> {
let lines = content.lines();
Copy link
Collaborator Author

@lifeizhou-ap lifeizhou-ap Jun 23, 2025

Choose a reason for hiding this comment

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

@DOsinga Is this block of logic is intentional? Just to confirm as I have deleted.

}

// If we didn't find a parameter block it might be because it is defined in json style or some such:
if serde_yaml::from_str::<serde_yaml::Value>(content).is_err() {
Copy link
Collaborator Author

@lifeizhou-ap lifeizhou-ap Jun 23, 2025

Choose a reason for hiding this comment

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

@DOsinga do we still need below as the next block also parse the content to recipe?
serde_yaml::from_str::<serde_yaml::Value>(content).is_err()

also shall we parse both json and yaml file here?

Copy link
Collaborator

Choose a reason for hiding this comment

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

any json file is also yaml, so no need to parse that twice

* main:
  fix: Improves reliability of flaky log tests (#3029)
  Add xAI Test Coverage (#3020)
@lifeizhou-ap lifeizhou-ap merged commit 8ad8773 into main Jun 23, 2025
7 checks passed
@lifeizhou-ap lifeizhou-ap deleted the lifei/fix-render-recipe branch June 23, 2025 11:52
jessejacksonafterpay added a commit to jessejacksonafterpay/goose that referenced this pull request Jun 24, 2025
…text-addition

* upstream/main:
  fix temporal build for windows (block#3045)
  fix cron parsing for windows (block#3044)
  feat: list Databricks-supported models and enable fuzzy search during model configuration (block#3039)
  fix: update index when tool selection strategy changes (block#2991)
  docs: Add "Add Recipe button" To Recipe Cookbook (block#3038)
  fix: issue when parsing recipe parameters (block#3031)
  fix: Improves reliability of flaky log tests (block#3029)
michaelneale added a commit that referenced this pull request Jun 24, 2025
* main:
  fix temporal build for windows (#3045)
  fix cron parsing for windows (#3044)
  feat: list Databricks-supported models and enable fuzzy search during model configuration (#3039)
  fix: update index when tool selection strategy changes (#2991)
  docs: Add "Add Recipe button" To Recipe Cookbook (#3038)
  fix: issue when parsing recipe parameters (#3031)
btdeviant pushed a commit to btdeviant/goose that referenced this pull request Jun 25, 2025
laanak08 added a commit that referenced this pull request Jun 26, 2025
# By Alice Hau (6) and others
# Via Alice Hau
* ahau/tool-strategy: (27 commits)
  fix merge
  merged
  updated computercontroller and developer descriptions
  add additional strats to test
  fmt
  update to get vector db path from env var
  feat: list Databricks-supported models and enable fuzzy search during model configuration (#3039)
  fix: update index when tool selection strategy changes (#2991)
  docs: Add "Add Recipe button" To Recipe Cookbook (#3038)
  fix: issue when parsing recipe parameters (#3031)
  fix: Improves reliability of flaky log tests (#3029)
  Add xAI Test Coverage (#3020)
  Reorganizing tutorials (#3028)
  feat(providers): update Google Gemini models to latest available models (#2989)
  fix(docker): install protoc to fix lance-encoding build (#2995)
  fix: updated openrouter known models (#3021)
  Mnovich/temporal foreground tasks (#2895)
  add 'install in goose' asset (#3016)
  Added useDarkMode hook for detecting dark mode setting dynamically (#3019)
  docs: add sagemaker provider (#2980)
  ...

# Conflicts:
#	.gitignore
#	crates/goose/src/agents/router_tools.rs
s-soroosh pushed a commit to s-soroosh/goose that referenced this pull request Jul 18, 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