-
Notifications
You must be signed in to change notification settings - Fork 5
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 #1 from aiden-technologies/manual-setup
superagent-v1-beta
- Loading branch information
Showing
8 changed files
with
989 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Agent.swift | ||
// | ||
// Created by Simon Weniger on 09.07.23. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Agent: Codable { | ||
|
||
public var isActive: Bool | ||
public var name: String | ||
public var prompt: String? | ||
public var llmModel: String | ||
public var description: String | ||
public var avatar: String? | ||
|
||
public init(name: String, isActive: Bool, prompt: String? = nil, llmModel: String, description: String, avatar: String? = nil) { | ||
self.isActive = isActive | ||
self.name = name | ||
self.prompt = prompt | ||
self.llmModel = llmModel | ||
self.description = description | ||
self.avatar = avatar | ||
} | ||
} |
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,24 @@ | ||
// | ||
// Datasource.swift | ||
// | ||
// | ||
// Created by Simon Weniger (Aiden Technologies) on 19.09.23. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Datasource { | ||
|
||
public var name: String | ||
public var description: String | ||
public var type: String | ||
public var url: String | ||
public var metadata: [String: Any]? | ||
|
||
public init(name: String, description: String, type: String, url: String, metadata: [String: Any]? = nil) { | ||
self.name = name | ||
self.description = description | ||
self.type = type | ||
self.url = url | ||
} | ||
} |
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,19 @@ | ||
// | ||
// LLM.swift | ||
// | ||
// | ||
// Created by Simon Weniger (Aiden Technologies) on 19.09.23. | ||
// | ||
import Foundation | ||
|
||
public struct LLM { | ||
public var provider: String | ||
public var apiKey: String | ||
public var options: [String: Any]? | ||
|
||
public init(provider: String, apiKey: String, options: [String: Any]? = nil) { | ||
self.provider = provider | ||
self.apiKey = apiKey | ||
self.options = options | ||
} | ||
} |
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,21 @@ | ||
// | ||
// PredictAgent.swift | ||
// | ||
// Created by Simon Weniger (Aiden Technologies) on 09.07.23. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Request { | ||
|
||
public var input: String | ||
public var sessionId: String? | ||
public var enableStreaming: Bool | ||
|
||
public init(input: String, sessionId: String? = "", enableStreaming: Bool) { | ||
self.input = input | ||
self.sessionId = sessionId | ||
self.enableStreaming = enableStreaming | ||
} | ||
|
||
} |
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,25 @@ | ||
// | ||
// Tool.swift | ||
// | ||
// Created by Simon Weniger (Aiden Technologies) on 09.07.23. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Tool { | ||
|
||
public var name: String | ||
public var description: String | ||
public var type: String | ||
public var metadata: [String : Any]? | ||
public var returnDirect: Bool? | ||
|
||
public init(name: String, description: String, type: String, metadata: [String: Any]? = nil, returnDirect: Bool? = nil) { | ||
self.name = name | ||
self.description = description | ||
self.type = type | ||
self.metadata = metadata | ||
self.returnDirect = returnDirect | ||
} | ||
|
||
} |
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,24 @@ | ||
// | ||
// Workflow.swift | ||
// | ||
// | ||
// Created by Simon Weniger (Aiden Technologies) on 19.09.23. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct WorkflowStep { | ||
|
||
public var order: Int | ||
public var agentId: String | ||
public var input: String | ||
public var output: String | ||
|
||
public init(order: Int, agentId: String, input: String, output: String) { | ||
self.order = order | ||
self.agentId = agentId | ||
self.input = input | ||
self.output = output | ||
} | ||
|
||
} |
Oops, something went wrong.