Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions src/libs/Braintrust/Generated/Braintrust.AllOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
14 changes: 14 additions & 0 deletions src/libs/Braintrust/Generated/Braintrust.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
21 changes: 21 additions & 0 deletions src/libs/Braintrust/Generated/Braintrust.AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -97,6 +111,13 @@ public bool TryPickValue3(
value = Value3;
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
28 changes: 28 additions & 0 deletions src/libs/Braintrust/Generated/Braintrust.AnyOf.4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -98,6 +112,13 @@ public bool TryPickValue3(
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -127,6 +148,13 @@ public bool TryPickValue4(
value = Value4;
return IsValue4;
}

/// <summary>
///
/// </summary>
public T4 PickValue4() => IsValue4
? Value4!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@ public AISecret(
public AISecret()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class AISecretMetadata
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
14 changes: 14 additions & 0 deletions src/libs/Braintrust/Generated/Braintrust.Models.AISecretType.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickAISecretTypeVariant1(
return IsAISecretTypeVariant1;
}

/// <summary>
///
/// </summary>
public string PickAISecretTypeVariant1() => IsAISecretTypeVariant1
? AISecretTypeVariant1!
: throw new global::System.InvalidOperationException($"Expected union variant 'AISecretTypeVariant1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickAISecretTypeVariant2(
value = AISecretTypeVariant2;
return IsAISecretTypeVariant2;
}

/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<string> PickAISecretTypeVariant2() => IsAISecretTypeVariant2
? AISecretTypeVariant2!
: throw new global::System.InvalidOperationException($"Expected union variant 'AISecretTypeVariant2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/libs/Braintrust/Generated/Braintrust.Models.Acl.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,6 @@ public Acl(
public Acl()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ public AclBatchUpdateRequest(
public AclBatchUpdateRequest()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public AclBatchUpdateResponse(
public AclBatchUpdateResponse()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@ public AclItem(
public AclItem()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ public ApiKey(
public ApiKey()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ public BatchedFacetData(
public BatchedFacetData()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ public BatchedFacetDataFacet(
public BatchedFacetDataFacet()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class BatchedFacetDataPreprocessor
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ public BatchedFacetDataTopicMap(
public BatchedFacetDataTopicMap()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public sealed partial class BatchedFacetDataTopicMaps
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ public bool TryPickText(
return IsText;
}

/// <summary>
///
/// </summary>
public global::Braintrust.ChatCompletionContentPartTextWithTitle PickText() => IsText
? Text!
: throw new global::System.InvalidOperationException($"Expected union variant 'Text' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -69,6 +76,13 @@ public bool TryPickImageUrl(
return IsImageUrl;
}

/// <summary>
///
/// </summary>
public global::Braintrust.ChatCompletionContentPartImageWithTitle PickImageUrl() => IsImageUrl
? ImageUrl!
: throw new global::System.InvalidOperationException($"Expected union variant 'ImageUrl' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -98,6 +112,13 @@ public bool TryPickFile(
value = File;
return IsFile;
}

/// <summary>
///
/// </summary>
public global::Braintrust.ChatCompletionContentPartFileWithTitle PickFile() => IsFile
? File!
: throw new global::System.InvalidOperationException($"Expected union variant 'File' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ public ChatCompletionContentPartFileFile(
public ChatCompletionContentPartFileFile()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public ChatCompletionContentPartFileWithTitle(
public ChatCompletionContentPartFileWithTitle()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public ChatCompletionContentPartImageWithTitle(
public ChatCompletionContentPartImageWithTitle()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ public ChatCompletionContentPartImageWithTitleImageUrl(
public ChatCompletionContentPartImageWithTitleImageUrl()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public ChatCompletionContentPartText(
public ChatCompletionContentPartText()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public ChatCompletionContentPartTextCacheControl(
public ChatCompletionContentPartTextCacheControl()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ public ChatCompletionContentPartTextWithTitle(
public ChatCompletionContentPartTextWithTitle()
{
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public ChatCompletionContentPartTextWithTitleCacheControl(
public ChatCompletionContentPartTextWithTitleCacheControl()
{
}

}
}
Loading