-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from andgordio/main
Feat: Structured Outputs
- Loading branch information
Showing
5 changed files
with
370 additions
and
8 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
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,12 @@ | ||
// | ||
// StructuredOutput.swift | ||
// | ||
// | ||
// Created by Andriy Gordiyenko on 8/28/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol StructuredOutput: Codable { | ||
static var example: Self { get } | ||
} |
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,12 @@ | ||
// | ||
// StructuredOutputEnum.swift | ||
// | ||
// | ||
// Created by Andriy Gordiyenko on 8/29/24. | ||
// | ||
|
||
import Foundation | ||
|
||
public protocol StructuredOutputEnum: CaseIterable { | ||
var caseNames: [String] { get } | ||
} |
Oops, something went wrong.