Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 3, 2025
1 parent 85bc95e commit 82c4574
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/libs/Tavily/Generated/Tavily.ITavilyClient.Search.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public partial interface ITavilyClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Tavily.SearchResponse> SearchAsync(
string apiKey,
string query,
string? apiKey = default,
global::Tavily.SearchRequestSearchDepth? searchDepth = default,
bool? includeImages = default,
bool? includeAnswer = default,
Expand Down
7 changes: 3 additions & 4 deletions src/libs/Tavily/Generated/Tavily.Models.SearchRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public sealed partial class SearchRequest
/// </summary>
/// <example>your api key</example>
[global::System.Text.Json.Serialization.JsonPropertyName("api_key")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string ApiKey { get; set; }
public string? ApiKey { get; set; }

/// <summary>
/// The search query string.<br/>
Expand Down Expand Up @@ -119,8 +118,8 @@ public sealed partial class SearchRequest
/// </param>
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
public SearchRequest(
string apiKey,
string query,
string? apiKey,
global::Tavily.SearchRequestSearchDepth? searchDepth,
bool? includeImages,
bool? includeAnswer,
Expand All @@ -129,8 +128,8 @@ public SearchRequest(
global::System.Collections.Generic.IList<string>? includeDomains,
global::System.Collections.Generic.IList<string>? excludeDomains)
{
this.ApiKey = apiKey ?? throw new global::System.ArgumentNullException(nameof(apiKey));
this.Query = query ?? throw new global::System.ArgumentNullException(nameof(query));
this.ApiKey = apiKey;
this.SearchDepth = searchDepth;
this.IncludeImages = includeImages;
this.IncludeAnswer = includeAnswer;
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Tavily/Generated/Tavily.TavilyClient.Search.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ partial void ProcessSearchResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::Tavily.SearchResponse> SearchAsync(
string apiKey,
string query,
string? apiKey = default,
global::Tavily.SearchRequestSearchDepth? searchDepth = default,
bool? includeImages = default,
bool? includeAnswer = default,
Expand Down
1 change: 0 additions & 1 deletion src/libs/Tavily/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ components:
schemas:
SearchRequest:
required:
- api_key
- query
type: object
properties:
Expand Down

0 comments on commit 82c4574

Please sign in to comment.