RunsApi

io.github.quafadas.dairect.RunsApi
See theRunsApi companion trait
object RunsApi

Attributes

Companion
trait
Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
RunsApi.type

Members list

Type members

Classlikes

case class CreateThread(messages: List[ThreadMessage], tool_resources: Option[ToolResources], metadata: Option[ThreadMetaData])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RequiredAction(`type`: String, submit_tool_outputs: List[ToolCall])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Run(id: String, `object`: String, created_at: Long, assistant_id: String, thread_id: String, status: RunStatus, required_action: Option[RequiredAction], last_error: Option[RunError], started_at: Long, expires_at: Option[Long], cancelled_at: Option[Long], failed_at: Option[Long], completed_at: Option[Long], incomplete_details: Option[RunIncomplete], model: String, instructions: Option[String], tools: List[AssistantTool], metadata: RunMetaData, usage: Usage, temperature: Double, top_p: Double, max_prompt_tokens: Int, max_completion_tokens: Int, truncation_strategy: TruncationStrategy, tool_choice: ToolChoiceInRun, parallel_tool_calls: Boolean, response_format: ResponseFormat)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RunError(code: RunErrorType, message: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RunIncomplete(reason: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RunList(`object`: String, data: List[Run], first_id: String, last_id: String, has_more: Boolean)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum RunStatus

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RunToolDetail(`type`: String, function: RunToolName)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class RunToolName(name: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ToolOutput(tool_call_id: String, output: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class TruncationStrategy(`type`: String, last_messages: Option[String])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Usage(prompt_tokens: Int, completion_tokens: Int, total_tokens: Int)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(client: Client[IO], baseUrl: Uri): Resource[IO, RunsApi]

Givens

Givens

given derived$API: API[RunsApi]