Skip to content

Commit cfd11d8

Browse files
committed
Update
1 parent 314841b commit cfd11d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Tool/Sources/LangChain/AgentTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public struct FunctionCallingAgentTool<F: ChatGPTFunction>: AgentTool, ChatGPTFu
5656
public init(function: F, returnDirectly: Bool = false) {
5757
self.function = function
5858
name = function.name
59-
description = function.description
59+
description = "Run an action: \(function.description)"
6060
self.returnDirectly = returnDirectly
6161
}
6262

Tool/Sources/OpenAIService/FucntionCall/JSONSchema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22

33
public struct JSONSchemaKey: Codable, Hashable, Sendable, Equatable, ExpressibleByStringLiteral {
4-
var key: String
4+
public var key: String
55

66
public init(stringLiteral: String) {
77
key = stringLiteral

0 commit comments

Comments
 (0)