Language

AgentInsightProposedFixChange Class

Definition

A customer-renderable change in a proposed fix.

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

Properties

Name Description
Diff

The unified diff for the changed source path.

Language

The language of the changed source path.

NewValue

The bounded Prompt value after the change. Present for Prompt changes, including when null.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

OldValue

The bounded Prompt value before the change. Present for Prompt changes, including when null.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Path

The source path changed by a code change.

Surface

The Prompt surface changed by a Prompt change.

Target

The user-visible target within a Prompt surface, when needed.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<AgentInsightProposedFixChange>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<AgentInsightProposedFixChange>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<AgentInsightProposedFixChange>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<AgentInsightProposedFixChange>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<AgentInsightProposedFixChange>.Write(ModelReaderWriterOptions)

Applies to