Skip to content

Commit

Permalink
No Agent<A>, only AI<A> (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Vergauwen <[email protected]>
  • Loading branch information
serras and nomisRev authored May 19, 2023
1 parent 6f39b9e commit 0da8332
Show file tree
Hide file tree
Showing 24 changed files with 517 additions and 1,020 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ sealed interface AIError {
get() = "No response from the AI"
}

data class Combined(val errors: NonEmptyList<AIError>) : AIError {
override val reason: String
get() = errors.joinToString { it.reason }
}

data class JsonParsing(
val result: String,
val maxAttempts: Int,
Expand All @@ -29,11 +24,10 @@ sealed interface AIError {
override val reason: String
get() = "OpenAI Environment not found: ${errors.all.joinToString("\n")}"
}

data class HuggingFace(val errors: NonEmptyList<String>) : Env {
override val reason: String
get() = "HuggingFace Environment not found: ${errors.all.joinToString("\n")}"
}
}

data class InvalidInputs(override val reason: String) : AIError
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0da8332

Please sign in to comment.