struct PlaceOS::Driver::DriverModel::Metadata

Included Modules

Extended Modules

Defined in:

placeos-driver/driver_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def arity(function_name : String | Symbol) #

[View source]
def functions : Hash(String, Hash(String, Array(JSON::Any))) #

Note:: the use of both these functions is temporary

DEPRECATED Use #interface instead


[View source]
def functions=(functions : Hash(String, Hash(String, Array(JSON::Any))) | Nil) #

[View source]
def implements : Array(String) #

Interfaces implemented by module


def implements=(implements : Array(String)) #

Interfaces implemented by module


[View source]
def implements? : Array(String) | Nil #

Interfaces implemented by module


def interface : Hash(String, Hash(String, JSON::Any)) #

Functions available on module, map of function name to args


[View source]
def interface=(interface : Hash(String, Hash(String, JSON::Any)) | Nil) #

Functions available on module, map of function name to args


[View source]
def llm_interface #

a minimal interface for informing Large Language Models


[View source]
def notes : String | Nil #

Notes that might be relevant to a LLM


[View source]
def notes=(notes : String | Nil) #

Notes that might be relevant to a LLM


[View source]
def requirements : Hash(String, Array(String)) #

Module requirements, map of module name to required interfaces


def requirements=(requirements : Hash(String, Array(String))) #

Module requirements, map of module name to required interfaces


[View source]
def requirements? : Hash(String, Array(String)) | Nil #

Module requirements, map of module name to required interfaces


def security : Hash(String, Array(String)) #

Function access control, map of access level to function names


def security=(security : Hash(String, Array(String))) #

Function access control, map of access level to function names


[View source]
def security? : Hash(String, Array(String)) | Nil #

Function access control, map of access level to function names


def settings : NamedTuple(type: String, properties: Hash(String, JSON::Any) | Nil, required: Array(String) | Nil) | Nil #

JSON Schema derived from the settings used in the driver


[View source]
def settings=(settings : NamedTuple(type: String, properties: Hash(String, JSON::Any) | Nil, required: Array(String) | Nil) | Nil) #

JSON Schema derived from the settings used in the driver


[View source]