io.cequence.openaiscala.domain.Attachment.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openai-scala-core_2.13 Show documentation
Show all versions of openai-scala-core_2.13 Show documentation
Core module of OpenAI Scala client
package io.cequence.openaiscala.domain
final case class Attachment(
// The ID of the file to attach to the message.
fileId: Option[FileId],
// The tools to add this file to.
tools: Seq[MessageAttachmentTool] = Nil
)
object Attachment {
def unapply(attachment: Attachment): Option[(Option[FileId], Seq[MessageAttachmentTool])] =
Some((attachment.fileId, attachment.tools))
}