io.github.quafadas.dairect
package io.github.quafadas.dairect
Members list
Type members
Experimental classlikes
object AiResponseFormat
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
AiResponseFormat.type
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Experimental
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
sealed trait Annotation extends Product, Serializable
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
object Annotation extends Companion[Annotation]
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
trait Sumtrait Mirrortrait Companion[Annotation]trait Has[Annotation]trait ShapeTag[Annotation]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
Annotation.type
trait AssistantApi
https://platform.openai.com/docs/api-reference/assistants/createAssistant
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object AssistantApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AssistantApi.type
case class AssistantFileSearch(max_num_results: Option[Long], ranking_options: Option[RankingOptions])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object AssistantMetaData extends Newtype[Map[String, String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[Map[String, String]]class AbstractNewtype[Map[String, String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
AssistantMetaData.type
enum AssistantStreamEvent
Attributes
- Experimental
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
enum AssistantTool
Attributes
- Experimental
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class AssistantToolFunction(name: String, parameters: Option[Document], description: Option[String], strict: Option[Boolean])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class ChatChunk(id: String, choices: List[ChunkChoice], created: Long, model: String, service_tier: Option[String], system_fingerprint: String, `object`: String, usage: Option[AiTokenUsage])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait ChatGpt
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object ChatGpt
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class ChunkDelta(content: Option[String], tool_calls: Option[List[ToolCall]], role: Option[String], refusal: Option[String])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object CodeInterpreterFileIds extends Newtype[List[String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[List[String]]class AbstractNewtype[List[String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait EmbeddingsApi
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object EmbeddingsApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
EmbeddingsApi.type
object FileIds extends Newtype[List[String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[List[String]]class AbstractNewtype[List[String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
FileIds.type
case class FileSearch(vector_store_ids: Option[VectorStoreIds], vector_stores: Option[VectorStoreIds])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait FilesApi
https://platform.openai.com/docs/api-reference/files
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object FilesApi
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object ImageDetails extends Companion[ImageDetails]
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrortrait Companion[ImageDetails]trait Has[ImageDetails]trait ShapeTag[ImageDetails]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
ImageDetails.type
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object ImageUrlDetails extends Companion[ImageUrlDetails]
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrortrait Companion[ImageUrlDetails]trait Has[ImageUrlDetails]trait ShapeTag[ImageUrlDetails]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
ImageUrlDetails.type
sealed trait MessageContent extends Product, Serializable
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
object MessageContent extends Companion[MessageContent]
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
trait Sumtrait Mirrortrait Companion[MessageContent]trait Has[MessageContent]trait ShapeTag[MessageContent]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageContent.type
object MessageContentList extends Newtype[List[MessageContent]]
Attributes
- Experimental
- true
- Supertypes
-
trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageContentList.type
object MessageMetaData extends Newtype[Map[String, String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[Map[String, String]]class AbstractNewtype[Map[String, String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageMetaData.type
sealed trait MessageOnThread extends Product, Serializable
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
object MessageOnThread extends Companion[MessageOnThread]
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
trait Sumtrait Mirrortrait Companion[MessageOnThread]trait Has[MessageOnThread]trait ShapeTag[MessageOnThread]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageOnThread.type
sealed trait MessageToSend extends Product, Serializable
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Known subtypes
- Self type
object MessageToSend extends Companion[MessageToSend]
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
trait Sumtrait Mirrortrait Companion[MessageToSend]trait Has[MessageToSend]trait ShapeTag[MessageToSend]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageToSend.type
object MessageToSendList extends Newtype[List[MessageToSend]]
Attributes
- Experimental
- true
- Supertypes
-
trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
MessageToSendList.type
trait MessagesApi
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object MessagesApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MessagesApi.type
case class OpenAiPlatform(chatApi: ChatGpt, assistantApi: AssistantApi, filesApi: FilesApi, vectorStoreApi: VectorStoreApi, vectorStoreFilesApi: VectorStoreFilesApi, runApi: RunApi, runStepsApi: RunStepsApi, threadApi: ThreadApi, messageApi: MessagesApi, authdClient: Client[IO])
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object OpenAiPlatform
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
OpenAiPlatform.type
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
enum ResponseFormat
Attributes
- Experimental
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait RunApi
https://platform.openai.com/docs/api-reference/runs
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object RunApi
object RunMetaData extends Newtype[Map[String, String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[Map[String, String]]class AbstractNewtype[Map[String, String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
RunMetaData.type
trait RunStepsApi
https://platform.openai.com/docs/api-reference/run-steps/getRunStep
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object RunStepsApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RunStepsApi.type
case class StructuredOutput(name: String, description: Option[String], schema: Option[Document], strict: Option[Boolean])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object TextToSend extends Companion[TextToSend]
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrortrait Companion[TextToSend]trait Has[TextToSend]trait ShapeTag[TextToSend]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
TextToSend.type
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait ThreadApi
https://platform.openai.com/docs/api-reference/assistants/createAssistant
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object ThreadApi
case class ThreadMessage(content: MessageOnThread, role: ThreadMessageRole, attachments: Option[List[MessageAttachment]], metadata: Option[ThreadMetaData])
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object ThreadMessage
Attributes
- Companion
- class
- Experimental
- true
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ThreadMessage.type
enum ThreadMessageRole
Attributes
- Experimental
- true
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object ThreadMetaData extends Newtype[Map[String, String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[Map[String, String]]class AbstractNewtype[Map[String, String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
ThreadMetaData.type
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
case class ToolResources(code_interpreter: Option[CodeInterpreter], file_search: Option[FileSearch])
Attributes
- Experimental
- true
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
trait VectorStoreApi
https://platform.openai.com/docs/api-reference/vector-stores
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object VectorStoreApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
VectorStoreApi.type
object VectorStoreFileIds extends Newtype[List[String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[List[String]]class AbstractNewtype[List[String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
VectorStoreFileIds.type
trait VectorStoreFilesApi
https://platform.openai.com/docs/api-reference/vector-stores-files
Attributes
- Companion
- object
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
object VectorStoreFilesApi
Attributes
- Companion
- trait
- Experimental
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
VectorStoreFilesApi.type
object VectorStoreIds extends Newtype[List[String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[List[String]]class AbstractNewtype[List[String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
VectorStoreIds.type
object VectorStoreMetaData extends Newtype[Map[String, String]]
Attributes
- Experimental
- true
- Supertypes
-
class Newtype[Map[String, String]]class AbstractNewtype[Map[String, String]]trait HasIdclass Objecttrait Matchableclass AnyShow all
- Self type
-
VectorStoreMetaData.type
Types
Value members
Experimental methods
Attributes
- Experimental
- true
Attributes
- Experimental
- true
Attributes
- Experimental
- true
Attributes
- Experimental
- true
Attributes
- Experimental
- true
def streamAssistantEvents(authdClient: Client[IO], req: Request[IO]): Stream[IO, AssistantStreamEvent]
Attributes
- Experimental
- true
Experimental fields
Attributes
- Experimental
- true
Attributes
- Experimental
- true
Extensions
Experimental extensions
extension (c: ChatGpt)
def stream(messages: List[AiMessage], model: String, temperature: Option[Double], tools: Option[Document], response_format: Option[AiResponseFormat], authdClient: Client[IO], baseUrl: String): Stream[IO, String]
Attributes
- Experimental
- true
def streamRaw(messages: List[AiMessage], model: String, temperature: Option[Double], tools: Option[Document], response_format: Option[AiResponseFormat], authdClient: Client[IO], baseUrl: String): Stream[IO, List[ChatChunk]]
Attributes
- Experimental
- true
extension (c: RunApi)
def createThreadRunStream(authdClient: Client[IO], assistant_id: String, thread: CreateThread, model: Option[String], instructions: Option[String], additional_instructions: Option[String], tools: Option[List[AssistantTool]], tool_resources: Option[ToolResources], metadata: Option[RunMetaData], temperature: Option[Double], top_p: Option[Double], max_prompt_tokens: Option[Long], max_completion_tokens: Option[Long], truncation_strategy: Option[TruncationStrategy], tool_choice: Option[ToolChoiceInRun], parallel_tool_calls: Option[Boolean], response_format: Option[ResponseFormat], baseUrl: String): Stream[IO, AssistantStreamEvent]
Attributes
- Experimental
- true
def streamRun(authdClient: Client[IO], thread_id: String, assistant_id: String, model: Option[String], instructions: Option[String], additional_instructions: Option[String], additional_messages: Option[List[ThreadMessage]], tools: Option[List[AssistantTool]], metadata: Option[RunMetaData], temperature: Option[Double], top_p: Option[Double], max_prompt_tokens: Option[Long], max_completion_tokens: Option[Long], truncation_strategy: Option[TruncationStrategy], tool_choice: Option[ToolChoiceInRun], parallel_tool_calls: Option[Boolean], response_format: Option[ResponseFormat], baseUrl: String): Stream[IO, AssistantStreamEvent]
Attributes
- Experimental
- true
def streamToolOutput(authdClient: Client[IO], thread_id: String, run_id: String, tool_outputs: List[ToolOutput], baseUrl: String): Stream[IO, AssistantStreamEvent]
Attributes
- Experimental
- true
extension [A](errorOr: Either[PayloadError, A])
Attributes
- Experimental
- true
extension (fApi: FilesApi)
Attributes
- Experimental
- true
extension (s: String)
https://platform.openai.com/docs/api-reference/assistants/createAssistant
Attributes
- Experimental
- true
extension (s: String)
Attributes
- Experimental
- true
In this article