com.github.frtu.kotlin.tool.function.Function.kt Maven / Gradle / Ivy
package com.github.frtu.kotlin.tool.function
import com.github.frtu.kotlin.action.management.ActionId
import com.github.frtu.kotlin.tool.ToolExecuter
import com.github.frtu.kotlin.serdes.json.schema.SchemaGen
/**
* Base class for callable function
*/
abstract class Function(
id: ActionId,
description: String,
parameterJsonSchema: String,
returnJsonSchema: String?,
// val parameters: List,
) : ToolExecuter(
id = id,
description = description,
parameterJsonSchema = parameterJsonSchema,
returnJsonSchema = returnJsonSchema,
) {
constructor(
id: String,
description: String,
parameterClass: Class,
returnClass: Class