Part

io.cequence.openaiscala.gemini.domain.Part$
See thePart companion trait
object Part

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Part.type

Members list

Concise view

Type members

Classlikes

case class CodeExecutionResult(outcome: String, output: Option[String]) extends Part

Prefix: codeExecutionResult

Prefix: codeExecutionResult

Attributes

outcome

Required. Outcome of the code execution.

output

Optional. Contains stdout when code execution is successful, stderr or other description otherwise.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any
case class ExecutableCode(language: String, code: String) extends Part

Prefix: executableCode

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
case class FileData(mimeType: Option[String], fileUri: String) extends Part

Prefix: fileData

Prefix: fileData

URI based data.

Attributes

fileUri

Required. URI.

mimeType

Optional. The IANA standard MIME type of the source data.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any
case class FunctionCall(id: Option[String], name: String, args: Map[String, Any]) extends Part

Prefix: functionCall

Prefix: functionCall

A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values.

Attributes

args

Optional. The function parameters and values in JSON object format.

id

The unique id of the function call. If populated, the client to execute the functionCall and return the response with the matching id.

name

Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any
case class FunctionResponse(id: Option[String], name: String, response: Map[String, Any]) extends Part

Prefix: functionResponse

Prefix: functionResponse

The result output of a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model.

Attributes

id

The id of the function call this response is for. Populated by the client to match the corresponding function call id.

name

The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.

response

The function response in JSON object format.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any
case class InlineData(mimeType: String, data: String) extends Part

Prefix: inlineData

Prefix: inlineData

Blob of data. Inline media bytes.

Attributes

data

Raw bytes for media formats. A base64-encoded string.

mimeType

The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see Supported file formats.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Part
class Object
trait Matchable
class Any
case class Text(text: String) extends Part

Prefix: none

Prefix: none

Attributes

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

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror