---
title: "ModelSchema"
sidebar_label: "ModelSchema"
description: "Kotlin binding reference: ModelSchema."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ModelSchema](index.md)

# ModelSchema

[common]\
data class [ModelSchema](index.md)(val inputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; = emptyList(), val outputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; = emptyList(), val stateful: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, val supportsStreaming: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false)

A model's full I/O contract: the consumed and produced slots, and whether it keeps per-session state or streams.

## Constructors

| | |
|---|---|
| [ModelSchema](ModelSchema.md) | [common]<br>constructor(inputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; = emptyList(), outputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; = emptyList(), stateful: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false, supportsStreaming: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false) |

## Properties

| Name | Summary |
|---|---|
| [inputs](inputs.md) | [common]<br>val [inputs](inputs.md): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; |
| [outputs](outputs.md) | [common]<br>val [outputs](outputs.md): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[TensorSpec](../TensorSpec/index.md)&gt; |
| [stateful](stateful.md) | [common]<br>val [stateful](stateful.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |
| [supportsStreaming](supportsStreaming.md) | [common]<br>val [supportsStreaming](supportsStreaming.md): [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false |

## Functions

| Name | Summary |
|---|---|
| [findInput](findInput.md) | [common]<br>fun [findInput](findInput.md)(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [TensorSpec](../TensorSpec/index.md)?<br>The input spec named [name](findInput.md), or null. |
| [findOutput](findOutput.md) | [common]<br>fun [findOutput](findOutput.md)(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [TensorSpec](../TensorSpec/index.md)?<br>The output spec named [name](findOutput.md), or null. |