Repository navigation
Activities guide: both inference request shapes, lift intensity, rest days, brick segments - #50
Merged
Merged
Conversation
… brick segments Matches fuel-backend #954: activity_name/source_type/device are accepted alongside title/workout_type, responses carry activity_type and segments next to type and sub_types, lift answers carry intensity (1-3, lift's levels on the 1-9 scale), rest days come back rest_day true, and an unreachable inference service is a 502 that is not counted as usage. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X5MzUWe9V7E6etCRacGHCb Ci-From: linux Ci-Session: 66b38ef5-cd79-4bf7-9ff3-846a159ee7bc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Companion to fuel-backend #954. It updates the Activities guide's inference section to match what the partner routes return once #954 is deployed:
activity_nameortitle,source_typeorworkout_type, plusdevice. The other structured fields the endpoint reads (tss_calculation_method,structure_summary) are listed.activity_typenext totype. Brick answers carry orderedsegmentsnext tosub_types, and brick requests may send knownsegments.intensity1-3. The guide says to pass it unchanged asintensity_level, because lift uses levels 1-3 of that field and rescaling onto 1-9 raises the carbohydrate ceiling from 75 to 90 g/h.rest_day: trueand typeunknown(function change #950).unknown, not an error.check-docs-drift.pyagainst the #954 branch andcheck-engine-constants.pyare clean.Merge after #954 is deployed to partner-api prod, so the guide never describes fields the live API does not return.
🤖 Generated with Claude Code
https://claude.ai/code/session_01X5MzUWe9V7E6etCRacGHCb