-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ai_agent info (box/box-openapi#485)
- Loading branch information
1 parent
11e3a31
commit 7935d63
Showing
7 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "engineHash": "a839036", "specHash": "544d370", "version": "1.5.0" } | ||
{ "engineHash": "a839036", "specHash": "d7dfe68", "version": "1.5.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using Box.Sdk.Gen; | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using Box.Sdk.Gen.Internal; | ||
using System; | ||
using System.Collections.ObjectModel; | ||
|
||
namespace Box.Sdk.Gen.Schemas { | ||
public class AiAgentInfo : ISerializable { | ||
/// <summary> | ||
/// The models used for the request | ||
/// </summary> | ||
[JsonPropertyName("models")] | ||
public IReadOnlyList<AiAgentInfoModelsField>? Models { get; init; } | ||
|
||
/// <summary> | ||
/// The processor used for the request | ||
/// </summary> | ||
[JsonPropertyName("processor")] | ||
public string? Processor { get; init; } | ||
|
||
public AiAgentInfo() { | ||
|
||
} | ||
internal string? RawJson { get; set; } = default; | ||
|
||
void ISerializable.SetJson(string json) { | ||
RawJson = json; | ||
} | ||
|
||
string? ISerializable.GetJson() { | ||
return RawJson; | ||
} | ||
|
||
/// <summary> | ||
/// Returns raw json response returned from the API. | ||
/// </summary> | ||
public Dictionary<string, object?>? GetRawData() { | ||
return SimpleJsonSerializer.GetAllFields(this); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using Box.Sdk.Gen; | ||
using System.Text.Json.Serialization; | ||
using System.Collections.Generic; | ||
using Box.Sdk.Gen.Internal; | ||
|
||
namespace Box.Sdk.Gen.Schemas { | ||
public class AiAgentInfoModelsField : ISerializable { | ||
/// <summary> | ||
/// The name of the model used for the request | ||
/// </summary> | ||
[JsonPropertyName("name")] | ||
public string? Name { get; init; } | ||
|
||
/// <summary> | ||
/// The provider that owns the model used for the request | ||
/// </summary> | ||
[JsonPropertyName("provider")] | ||
public string? Provider { get; init; } | ||
|
||
/// <summary> | ||
/// The supported purpose utilized by the model used for the request | ||
/// </summary> | ||
[JsonPropertyName("supported_purpose")] | ||
public string? SupportedPurpose { get; init; } | ||
|
||
public AiAgentInfoModelsField() { | ||
|
||
} | ||
internal string? RawJson { get; set; } = default; | ||
|
||
void ISerializable.SetJson(string json) { | ||
RawJson = json; | ||
} | ||
|
||
string? ISerializable.GetJson() { | ||
return RawJson; | ||
} | ||
|
||
/// <summary> | ||
/// Returns raw json response returned from the API. | ||
/// </summary> | ||
public Dictionary<string, object?>? GetRawData() { | ||
return SimpleJsonSerializer.GetAllFields(this); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters