ExecutableCode

io.cequence.openaiscala.gemini.domain.Part$.ExecutableCode
case class ExecutableCode(language: String, code: String) extends Part

Prefix: executableCode

Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the CodeExecution tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated.

Attributes

code

Required. The code to be executed.

language

Required. Programming language of the code.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

override val prefix: PartPrefix