Portal
SandboxAPI v1Not signed inExternal user: —

Enums

Every enum value is listed below. foodapi.models.reasoning.ReasonGoal ¶ Bases: str, Enum Goal sent to POST /v1/reason. FEASIBILITY class-attribute…

Every enum value is listed below.

foodapi.models.reasoning.ReasonGoal

Bases: str, Enum

Goal sent to POST /v1/reason.

FEASIBILITY class-attribute instance-attribute

FEASIBILITY = 'FEASIBILITY'

Score whether the recipe is feasible given pantry and constraints.

TRANSFORMATION class-attribute instance-attribute

TRANSFORMATION = 'TRANSFORMATION'

Produce substitution / diet transformation steps.

RECOMMENDATION class-attribute instance-attribute

RECOMMENDATION = 'RECOMMENDATION'

Rank alternative recipes.

ANALYSIS class-attribute instance-attribute

ANALYSIS = 'ANALYSIS'

Return structured analysis; often paired with include_trace=True.

Value Description
FEASIBILITY Can this recipe be made with available pantry/context?
TRANSFORMATION Suggest ingredient substitutions or diet transforms
RECOMMENDATION Rank alternative recipes
ANALYSIS Deep structured analysis with trace

foodapi.models.reasoning.RecommendedRecipeVersion

Bases: str, Enum

Which recipe variant the API recommends.

ORIGINAL class-attribute instance-attribute

ORIGINAL = 'ORIGINAL'

Recommend the source recipe as written.

TRANSFORMED class-attribute instance-attribute

TRANSFORMED = 'TRANSFORMED'

Recommend the transformed variant.

Value Description
ORIGINAL Score the source recipe as written
TRANSFORMED Score after applying transformation plan

Additional string enums appear on generated OpenAPI models in foodapi.models.