WeatherTool

org.llm4s.toolapi.tools.WeatherTool
object WeatherTool

Weather tool implementation

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class WeatherResult(location: String, temperature: Double, units: String, conditions: String)

Attributes

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

Value members

Concrete methods

def weatherHandler(params: SafeParameterExtractor): Either[String, WeatherResult]

Concrete fields

val tool: ToolFunction[Map[String, Any], WeatherResult]
val weatherParamsSchema: ObjectSchema[Map[String, Any]]

Implicits

Implicits

implicit val weatherResultRW: ReadWriter[WeatherResult]