Agent

io.github.quafadas.dairect.Agent
See theAgent companion class
object Agent

Attributes

Companion
class
Experimental
true
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Agent.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def startAgent[Alg[_[_, _, _, _, _]]](model: ChatGpt, seedMessages: List[AiMessage], modelParams: ChatGptConfig, toolkit: FunctorAlgebra[Alg, IO])(implicit S: Service[Alg]): IO[List[AiMessage]]

Value parameters

model

- An implementation of the ChatGpt service. There is not a "single" one of these, as it is anticipated that people may wish to configure different middleware (logging et al) for individual agents.

modelParams

- Params to call chatGPT with.

seedMessages

- The messages that will seed the conversation with this agent.

toolkit

- This is a smithy4s 'API' or 'Service'. This agent will be able to call the Operations exposed by this service, as tool calls.

Attributes