Skip to content

Commit

Permalink
Merge pull request #77 from tryAGI/bot/update-openapi_202410010141
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 1, 2024
2 parents 5a956c3 + 8501030 commit b3420af
Show file tree
Hide file tree
Showing 290 changed files with 2,455 additions and 114 deletions.
48 changes: 48 additions & 0 deletions src/libs/LangSmith/Generated/AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,54 @@ public bool Validate()
return IsValue1 || IsValue2;
}

/// <summary>
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
global::System.Func<T2, TResult>? value2 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1 && value1 != null)
{
return value1(Value1!);
}
else if (IsValue2 && value2 != null)
{
return value2(Value2!);
}

return default(TResult);
}

/// <summary>
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
global::System.Action<T2>? value2 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1)
{
value1?.Invoke(Value1!);
}
else if (IsValue2)
{
value2?.Invoke(Value2!);
}
}

/// <summary>
///
/// </summary>
Expand Down
58 changes: 58 additions & 0 deletions src/libs/LangSmith/Generated/AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,64 @@ public bool Validate()
return IsValue1 || IsValue2 || IsValue3;
}

/// <summary>
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
global::System.Func<T2, TResult>? value2 = null,
global::System.Func<T3, TResult>? value3 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1 && value1 != null)
{
return value1(Value1!);
}
else if (IsValue2 && value2 != null)
{
return value2(Value2!);
}
else if (IsValue3 && value3 != null)
{
return value3(Value3!);
}

return default(TResult);
}

/// <summary>
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
global::System.Action<T2>? value2 = null,
global::System.Action<T3>? value3 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1)
{
value1?.Invoke(Value1!);
}
else if (IsValue2)
{
value2?.Invoke(Value2!);
}
else if (IsValue3)
{
value3?.Invoke(Value3!);
}
}

/// <summary>
///
/// </summary>
Expand Down
68 changes: 68 additions & 0 deletions src/libs/LangSmith/Generated/AnyOf.4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,74 @@ public bool Validate()
return IsValue1 || IsValue2 || IsValue3 || IsValue4;
}

/// <summary>
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
global::System.Func<T2, TResult>? value2 = null,
global::System.Func<T3, TResult>? value3 = null,
global::System.Func<T4, TResult>? value4 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1 && value1 != null)
{
return value1(Value1!);
}
else if (IsValue2 && value2 != null)
{
return value2(Value2!);
}
else if (IsValue3 && value3 != null)
{
return value3(Value3!);
}
else if (IsValue4 && value4 != null)
{
return value4(Value4!);
}

return default(TResult);
}

/// <summary>
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
global::System.Action<T2>? value2 = null,
global::System.Action<T3>? value3 = null,
global::System.Action<T4>? value4 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1)
{
value1?.Invoke(Value1!);
}
else if (IsValue2)
{
value2?.Invoke(Value2!);
}
else if (IsValue3)
{
value3?.Invoke(Value3!);
}
else if (IsValue4)
{
value4?.Invoke(Value4!);
}
}

/// <summary>
///
/// </summary>
Expand Down
78 changes: 78 additions & 0 deletions src/libs/LangSmith/Generated/AnyOf.5.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,84 @@ public bool Validate()
return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5;
}

/// <summary>
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
global::System.Func<T2, TResult>? value2 = null,
global::System.Func<T3, TResult>? value3 = null,
global::System.Func<T4, TResult>? value4 = null,
global::System.Func<T5, TResult>? value5 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1 && value1 != null)
{
return value1(Value1!);
}
else if (IsValue2 && value2 != null)
{
return value2(Value2!);
}
else if (IsValue3 && value3 != null)
{
return value3(Value3!);
}
else if (IsValue4 && value4 != null)
{
return value4(Value4!);
}
else if (IsValue5 && value5 != null)
{
return value5(Value5!);
}

return default(TResult);
}

/// <summary>
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
global::System.Action<T2>? value2 = null,
global::System.Action<T3>? value3 = null,
global::System.Action<T4>? value4 = null,
global::System.Action<T5>? value5 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1)
{
value1?.Invoke(Value1!);
}
else if (IsValue2)
{
value2?.Invoke(Value2!);
}
else if (IsValue3)
{
value3?.Invoke(Value3!);
}
else if (IsValue4)
{
value4?.Invoke(Value4!);
}
else if (IsValue5)
{
value5?.Invoke(Value5!);
}
}

/// <summary>
///
/// </summary>
Expand Down
88 changes: 88 additions & 0 deletions src/libs/LangSmith/Generated/AnyOf.6.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,94 @@ public bool Validate()
return IsValue1 || IsValue2 || IsValue3 || IsValue4 || IsValue5 || IsValue6;
}

/// <summary>
///
/// </summary>
public TResult? Match<TResult>(
global::System.Func<T1, TResult>? value1 = null,
global::System.Func<T2, TResult>? value2 = null,
global::System.Func<T3, TResult>? value3 = null,
global::System.Func<T4, TResult>? value4 = null,
global::System.Func<T5, TResult>? value5 = null,
global::System.Func<T6, TResult>? value6 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1 && value1 != null)
{
return value1(Value1!);
}
else if (IsValue2 && value2 != null)
{
return value2(Value2!);
}
else if (IsValue3 && value3 != null)
{
return value3(Value3!);
}
else if (IsValue4 && value4 != null)
{
return value4(Value4!);
}
else if (IsValue5 && value5 != null)
{
return value5(Value5!);
}
else if (IsValue6 && value6 != null)
{
return value6(Value6!);
}

return default(TResult);
}

/// <summary>
///
/// </summary>
public void Match(
global::System.Action<T1>? value1 = null,
global::System.Action<T2>? value2 = null,
global::System.Action<T3>? value3 = null,
global::System.Action<T4>? value4 = null,
global::System.Action<T5>? value5 = null,
global::System.Action<T6>? value6 = null,
bool validate = true)
{
if (validate)
{
Validate();
}

if (IsValue1)
{
value1?.Invoke(Value1!);
}
else if (IsValue2)
{
value2?.Invoke(Value2!);
}
else if (IsValue3)
{
value3?.Invoke(Value3!);
}
else if (IsValue4)
{
value4?.Invoke(Value4!);
}
else if (IsValue5)
{
value5?.Invoke(Value5!);
}
else if (IsValue6)
{
value6?.Invoke(Value6!);
}
}

/// <summary>
///
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/libs/LangSmith/Generated/LangSmith.AceClient.Execute.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ partial void ProcessExecuteResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute));

if (_authorization != null)
{{
httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue(
scheme: _authorization.Name,
parameter: _authorization.Value);
}}
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, request.GetType(), JsonSerializerContext);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
Expand Down
Loading

0 comments on commit b3420af

Please sign in to comment.