@skip
The @skip attribute in BAML is used to exclude certain fields or values from being included in prompts or parsed responses. This can be useful when certain data is not relevant for the LLM’s processing.
In the case of class fields, the field type must be nullable if @skip is used
in order to allow parsing LLM responses that will not include the field.
This is valid:
OK
This is not:
NOT OK
Prompt Impact
Without @skip
BAML
ctx.output_format:
MyEnum
MyClass
With @skip
BAML
ctx.output_format:
MyEnum
MyClass