feat(colombia-farm): use weather service mcp results in inventory prompt #369
+9
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Results of the weather service MCP invocation are now actually used in the inventory prompt of the colombia farm agent to influence the expected yield. That was not the case, at least from how I understood the code.
Description
Previously the weather MCP service was called, but the result was not used afterward as it was not passed to any following prompts. This PR is changing this behavior by using it in the inventory node prompt. The yield is now estimated based on a given constant yield for Colombia (5000 lbs) plus an additional 100 lbs per one temperature unit above 0.
Therefore, at least somehow include the weather data in the workflow.
For e.g. a returned temperature of 29.6 °C the agent will now return 7960 lbs (5000 lbs + 2960 lbs)
Issue Link
No Issue posted. Just saw this while playing around with it and noticed it.
Type of Change
Checklist