esc.ai

package esc.ai

Members list

Type members

Classlikes

object AiAgent

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
AiAgent.type
case class Candidate(content: Content, finishReason: Option[String], index: Int)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Candidate

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Candidate.type
case class Content(parts: Seq[Part], role: Option[String])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Content

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Content.type
case class GeminiResponse(candidates: Seq[Candidate])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait LMRunner

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object LMRunnerService extends LMRunner

Management service for the LLM runner instances. Use this service to change the LLM runner if needed. The AiAgent object uses this service for LLM inference calls.

Management service for the LLM runner instances. Use this service to change the LLM runner if needed. The AiAgent object uses this service for LLM inference calls.

Attributes

Supertypes
trait LMRunner
class Object
trait Matchable
class Any
Self type
object LocalLMRunner extends LMRunner

Default local LMRunner. Need a llama.cpp compatible LLM model like GGUF.

Default local LMRunner. Need a llama.cpp compatible LLM model like GGUF.

Attributes

Supertypes
trait LMRunner
class Object
trait Matchable
class Any
Self type
case class Part(text: String)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Part

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Part.type
object Prompts

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Prompts.type
class SimpleGeminiRunner(apiUrl: String, apiKey: String) extends LMRunner

A simple LMRunner implementation which call the Gemini API for LLM stuff. You need at least a valid Gemini ApiKey.

A simple LMRunner implementation which call the Gemini API for LLM stuff. You need at least a valid Gemini ApiKey.

Usage: val g = new SimpleGeminiRunner("path", "apiKey") LMRunner.setLMRunner(g)

Attributes

Supertypes
trait LMRunner
class Object
trait Matchable
class Any