-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bd79ab
commit b614a6f
Showing
13 changed files
with
140 additions
and
13 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": "f073ce3", "specHash": "544d370", "version": "0.5.0" } | ||
{ "engineHash": "a839036", "specHash": "d7dfe68", "version": "0.5.0" } |
Large diffs are not rendered by default.
Oops, something went wrong.
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
2 changes: 1 addition & 1 deletion
2
Sources/Schemas/AiAgentBasicTextTool/AiAgentBasicTextTool.swift
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
2 changes: 1 addition & 1 deletion
2
Sources/Schemas/AiAgentBasicTextToolBase/AiAgentBasicTextToolBase.swift
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
2 changes: 1 addition & 1 deletion
2
Sources/Schemas/AiAgentBasicTextToolTextGen/AiAgentBasicTextToolTextGen.swift
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,38 @@ | ||
import Foundation | ||
|
||
/// The information on the models and processors used in the request. | ||
public class AiAgentInfo: Codable { | ||
private enum CodingKeys: String, CodingKey { | ||
case models | ||
case processor | ||
} | ||
|
||
/// The models used for the request | ||
public let models: [AiAgentInfoModelsField]? | ||
|
||
/// The processor used for the request | ||
public let processor: String? | ||
|
||
/// Initializer for a AiAgentInfo. | ||
/// | ||
/// - Parameters: | ||
/// - models: The models used for the request | ||
/// - processor: The processor used for the request | ||
public init(models: [AiAgentInfoModelsField]? = nil, processor: String? = nil) { | ||
self.models = models | ||
self.processor = processor | ||
} | ||
|
||
required public init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
models = try container.decodeIfPresent([AiAgentInfoModelsField].self, forKey: .models) | ||
processor = try container.decodeIfPresent(String.self, forKey: .processor) | ||
} | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(models, forKey: .models) | ||
try container.encodeIfPresent(processor, forKey: .processor) | ||
} | ||
|
||
} |
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,45 @@ | ||
import Foundation | ||
|
||
public class AiAgentInfoModelsField: Codable { | ||
private enum CodingKeys: String, CodingKey { | ||
case name | ||
case provider | ||
case supportedPurpose = "supported_purpose" | ||
} | ||
|
||
/// The name of the model used for the request | ||
public let name: String? | ||
|
||
/// The provider that owns the model used for the request | ||
public let provider: String? | ||
|
||
/// The supported purpose utilized by the model used for the request | ||
public let supportedPurpose: String? | ||
|
||
/// Initializer for a AiAgentInfoModelsField. | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the model used for the request | ||
/// - provider: The provider that owns the model used for the request | ||
/// - supportedPurpose: The supported purpose utilized by the model used for the request | ||
public init(name: String? = nil, provider: String? = nil, supportedPurpose: String? = nil) { | ||
self.name = name | ||
self.provider = provider | ||
self.supportedPurpose = supportedPurpose | ||
} | ||
|
||
required public init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
name = try container.decodeIfPresent(String.self, forKey: .name) | ||
provider = try container.decodeIfPresent(String.self, forKey: .provider) | ||
supportedPurpose = try container.decodeIfPresent(String.self, forKey: .supportedPurpose) | ||
} | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(name, forKey: .name) | ||
try container.encodeIfPresent(provider, forKey: .provider) | ||
try container.encodeIfPresent(supportedPurpose, forKey: .supportedPurpose) | ||
} | ||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
Sources/Schemas/AiAgentLongTextToolTextGen/AiAgentLongTextToolTextGen.swift
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
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