Table of Contents

Class ClaudeSchemaAttribute

Namespace
Emissary
Assembly
Emissary.dll

Marks a partial record or class as a structured-output type. The Emissary source generator adds a public static string JsonSchema property containing the strict JSON Schema ("additionalProperties": false on every object level), built at compile time.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class ClaudeSchemaAttribute : Attribute
Inheritance
ClaudeSchemaAttribute
Inherited Members

Remarks

The type (and any types it is nested in) must be declared partial. The type's <summary> becomes the schema description and <param> tags on a positional record document its members (requires GenerateDocumentationFile).