Skip to content

Commit

Permalink
add remaining functions
Browse files Browse the repository at this point in the history
  • Loading branch information
simonweniger committed Sep 19, 2023
1 parent 4132d07 commit fa711ef
Show file tree
Hide file tree
Showing 16 changed files with 555 additions and 289 deletions.
2 changes: 0 additions & 2 deletions Sources/Models/Agent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

import Foundation



public struct Agent: Codable {

public var isActive: Bool
Expand Down
16 changes: 0 additions & 16 deletions Sources/Models/AnyOfValidationErrorLocItems.swift

This file was deleted.

23 changes: 0 additions & 23 deletions Sources/Models/ApiToken.swift

This file was deleted.

24 changes: 24 additions & 0 deletions Sources/Models/Datasource.swift
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
}
}
66 changes: 0 additions & 66 deletions Sources/Models/Document.swift

This file was deleted.

20 changes: 0 additions & 20 deletions Sources/Models/HTTPValidationError.swift

This file was deleted.

19 changes: 19 additions & 0 deletions Sources/Models/LLM.swift
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
}
}
28 changes: 0 additions & 28 deletions Sources/Models/Prompt.swift

This file was deleted.

22 changes: 0 additions & 22 deletions Sources/Models/SignIn.swift

This file was deleted.

26 changes: 0 additions & 26 deletions Sources/Models/SignUp.swift

This file was deleted.

12 changes: 0 additions & 12 deletions Sources/Models/String+Error.swift

This file was deleted.

30 changes: 0 additions & 30 deletions Sources/Models/Tag.swift

This file was deleted.

26 changes: 8 additions & 18 deletions Sources/Models/Tool.swift
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
//
// Tool.swift
//
// Created by Simon Weniger on 09.07.23.
// 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 _description: String
public var authorization: Any?
public var metadata: Any?
public var metadata: [String : Any]?
public var returnDirect: Bool?

public init(name: String, type: String, _description: String, authorization: Any? = nil, metadata: Any? = nil) {
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._description = _description
self.authorization = authorization
self.metadata = metadata
self.returnDirect = returnDirect
}

public enum CodingKeys: String, CodingKey {
case name
case type
case _description = "description"
case authorization
case metadata
}


}
24 changes: 0 additions & 24 deletions Sources/Models/ValidationError.swift

This file was deleted.

24 changes: 24 additions & 0 deletions Sources/Models/WorkflowStep.swift
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
}

}
Loading

0 comments on commit fa711ef

Please sign in to comment.