Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ec6cae6

Browse files
update
1 parent 33445ca commit ec6cae6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

‎Sources/replicate-kit-swift/model/Model.swift‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@
77

88
import Foundation
99

10+
/// Represents a model object returned by the Replicate API.
11+
///
12+
/// This structure is conceptually similar to an MCP (Model Context Protocol) entity:
13+
/// it serves as a **"passport"** for an AI model, describing its **identity**, **origin**,
14+
/// **visibility**, and **latest version** within the system.
15+
///
16+
/// In MCP terms:
17+
/// - `owner`, `name`, and `url` → define the model’s **identity/context**
18+
/// - `description`, `visibility` → define its **metadata and meaning**
19+
/// - `github_url`, `paper_url`, `license_url` → represent **provenance** (source and license)
20+
/// - `latest_version` → represents the model’s **state/version**
21+
///
22+
/// Together, this mirrors the MCP concept of a model having a defined context,
23+
/// provenance, and operational metadata — essentially a **digital passport**
24+
/// for AI agents or models.
1025
///The response is a model object in the following format
1126
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1227
public struct Model: Hashable, Decodable {

‎Sources/replicate-kit-swift/net/ReplicateEndpoint.swift‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import Foundation
99

1010
public extension ReplicateAPI{
1111

12+
/// API endpoints for Replicate (v1)
1213
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1314
struct Endpoint: IEndpoint{
1415

16+
/// Base URL for all Replicate API requests
1517
static public let baseURL = "https://api.replicate.com/v1/"
1618
}
1719
}

‎Sources/replicate-kit-swift/protocol/IEndpoint.swift‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Foundation
1010
@available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
1111
public protocol IEndpoint{
1212

13+
/// The base URL for all API requests.
1314
static var baseURL: String { get }
1415

1516
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /