Skip to content

Commit

Permalink
making tool output public init (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrochabrun committed Jan 11, 2024
1 parent 61d7539 commit 4958ab1
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,24 @@ public struct RunToolsOutputParameter: Encodable {
case toolCallId = "tool_call_id"
case output
}

public init(
toolCallId: String?,
output: String?)
{
self.toolCallId = toolCallId
self.output = output
}
}

enum CodingKeys: String, CodingKey {
case toolOutputs = "tool_outputs"
}

public init(
toolOutputs: [ToolOutput])
{
self.toolOutputs = toolOutputs
}
}

0 comments on commit 4958ab1

Please sign in to comment.