Configuration for Claude schema composition.

interface IConfig {
    reference: boolean;
}

Properties

Properties

reference: boolean

Whether to allow reference types everywhere.

If you configure this property to false, most reference types represented by IClaudeSchema.IReference will be escaped to plain types unless in recursive type cases.

This is because some smaller LLM models do not understand reference types well, and even large LLM models sometimes experience hallucinations.

However, reference types make the schema size smaller, reducing LLM token costs. Therefore, if you're using a large LLM model and want to reduce token costs, you can configure this property to true.

true