All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.bedrock.kotlin.outputs.AgentFunction.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.bedrock.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 * Function definition
 * @property description Description of function
 * @property name Name for a resource.
 * @property parameters The parameters that the agent elicits from the user to fulfill the function.
 */
public data class AgentFunction(
    public val description: String? = null,
    public val name: String,
    public val parameters: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.bedrock.outputs.AgentFunction): AgentFunction = AgentFunction(
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            name = javaType.name(),
            parameters = javaType.parameters().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.bedrock.kotlin.outputs.AgentParameterDetail.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy