Partilhar via


ContentFilterTextSpan Class

Definition

A representation of a span of completion text as used by Azure OpenAI content filter results.

public class ContentFilterTextSpan : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.ContentFilterTextSpan>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.ContentFilterTextSpan>
type ContentFilterTextSpan = class
    interface IJsonModel<ContentFilterTextSpan>
    interface IPersistableModel<ContentFilterTextSpan>
Public Class ContentFilterTextSpan
Implements IJsonModel(Of ContentFilterTextSpan), IPersistableModel(Of ContentFilterTextSpan)
Inheritance
ContentFilterTextSpan
Implements

Properties

CompletionEndOffset

Offset of the first UTF32 code point which is excluded from the span. This field is always equal to completion_start_offset for empty spans. This field is always larger than completion_start_offset for non-empty spans.

CompletionStartOffset

Offset of the UTF32 code point which begins the span.

Explicit Interface Implementations

IJsonModel<ContentFilterTextSpan>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ContentFilterTextSpan>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ContentFilterTextSpan>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ContentFilterTextSpan>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ContentFilterTextSpan>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to