Skip to content

Commit 6550fd8

Browse files
committed
Formatting again
1 parent b603d6e commit 6550fd8

File tree

1 file changed

+23
-12
lines changed
  • openai-core/src/main/scala/io/cequence/openaiscala/domain/responsesapi

1 file changed

+23
-12
lines changed

openai-core/src/main/scala/io/cequence/openaiscala/domain/responsesapi/Input.scala

+23-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package io.cequence.openaiscala.domain.responsesapi
22

33
import io.cequence.openaiscala.domain.ChatRole
4+
import io.cequence.openaiscala.domain.responsesapi.tools._
45

56
trait Input
67

7-
// shortcuts for creating Inputs
88
object Input {
99

1010
def ofInputTextMessage(
@@ -44,16 +44,16 @@ object Input {
4444
id: String,
4545
queries: Seq[String] = Nil,
4646
status: ModelStatus,
47-
results: Seq[tools.FileSearchResult] = Nil
48-
) = tools.FileSearchToolCall(id, queries, status, results)
47+
results: Seq[FileSearchResult] = Nil
48+
) = FileSearchToolCall(id, queries, status, results)
4949

5050
def ofComputerToolCall(
51-
action: tools.ComputerToolAction,
51+
action: ComputerToolAction,
5252
callId: String,
5353
id: String,
54-
pendingSafetyChecks: Seq[tools.PendingSafetyCheck] = Nil,
54+
pendingSafetyChecks: Seq[PendingSafetyCheck] = Nil,
5555
status: ModelStatus
56-
) = tools.ComputerToolCall(
56+
) = ComputerToolCall(
5757
action,
5858
callId,
5959
id,
@@ -63,11 +63,11 @@ object Input {
6363

6464
def ofComputerToolCallOutput(
6565
callId: String,
66-
output: tools.ComputerScreenshot,
67-
acknowledgedSafetyChecks: Seq[tools.AcknowledgedSafetyCheck] = Nil,
66+
output: ComputerScreenshot,
67+
acknowledgedSafetyChecks: Seq[AcknowledgedSafetyCheck] = Nil,
6868
id: Option[String] = None,
6969
status: Option[ModelStatus] = None
70-
) = tools.ComputerToolCallOutput(
70+
) = ComputerToolCallOutput(
7171
callId,
7272
output,
7373
acknowledgedSafetyChecks,
@@ -78,22 +78,33 @@ object Input {
7878
def ofWebSearchToolCall(
7979
id: String,
8080
status: ModelStatus
81-
) = tools.WebSearchToolCall(id, status)
81+
) = WebSearchToolCall(id, status)
8282

8383
def ofFunctionToolCall(
8484
arguments: String,
8585
callId: String,
8686
name: String,
8787
id: Option[String] = None,
8888
status: Option[ModelStatus] = None
89-
) = tools.FunctionToolCall(arguments, callId, name, id, status)
89+
) = FunctionToolCall(
90+
arguments,
91+
callId,
92+
name,
93+
id,
94+
status
95+
)
9096

9197
def ofFunctionToolCallOutput(
9298
callId: String,
9399
output: String,
94100
id: Option[String] = None,
95101
status: Option[ModelStatus] = None
96-
) = tools.FunctionToolCallOutput(callId, output, id, status)
102+
) = FunctionToolCallOutput(
103+
callId,
104+
output,
105+
id,
106+
status
107+
)
97108

98109
def ofReasoning(
99110
id: String,

0 commit comments

Comments
 (0)