Skip to content

Commit

Permalink
Merge branch 'main' of github.com:getkyo/kyo
Browse files Browse the repository at this point in the history
  • Loading branch information
fwbrasil committed Dec 22, 2023
2 parents 31a6801 + 8cc298c commit 3026d14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kyo-llm/shared/src/main/scala/kyo/llm/listeners.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ object listeners {
import Listener._

object Listeners {

def silent[T, S](v: T < S): T < (AIs with S) =
listeners.let(Nil)(v)

def observe[T, S](event: String)(v: T < S)(implicit f: Flat[T < S]): T < (AIs with S) =
listeners.get.map { l =>
def loop(l: List[Listener]): T < (AIs with S) =
Expand Down

0 comments on commit 3026d14

Please sign in to comment.