Skip to content

Commit

Permalink
Add default nil value for requiredParameters in `FunctionDeclarat…
Browse files Browse the repository at this point in the history
…ion` (#153)
  • Loading branch information
andrewheard committed Apr 29, 2024
1 parent c01550c commit dc00663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/GoogleAI/FunctionCalling.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public struct FunctionDeclaration {
/// the values are ``Schema`` objects describing them.
/// - requiredParameters: A list of required parameters by name.
public init(name: String, description: String, parameters: [String: Schema]?,
requiredParameters: [String]?) {
requiredParameters: [String]? = nil) {
self.name = name
self.description = description
self.parameters = Schema(
Expand Down

0 comments on commit dc00663

Please sign in to comment.