Skip to content

Commit ce315f4

Browse files
committed
Remove prints
1 parent e367c4a commit ce315f4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

Core/Sources/ChatPlugins/SearchChatPlugin/SearchQuery.swift

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ func search(_ query: String) async throws -> AsyncThrowingStream<SearchEvent, Er
1818
final class LinkStorage {
1919
var links = [(title: String, link: String)]()
2020
}
21-
21+
2222
let linkStorage = LinkStorage()
23-
23+
2424
let tools = [
2525
SimpleAgentTool(
2626
name: "Search",
@@ -66,27 +66,15 @@ func search(_ query: String) async throws -> AsyncThrowingStream<SearchEvent, Er
6666
self.onAgentActionEnd = onAgentActionEnd
6767
}
6868

69-
func onChainStart<T>(type: T.Type, input: T.Input) where T: LangChain.Chain {
70-
print("Chain \(type) is started with input \(input).")
71-
}
69+
func onChainStart<T>(type: T.Type, input: T.Input) where T: LangChain.Chain {}
7270

73-
func onAgentFinish(output: LangChain.AgentFinish) {
74-
print("Agent is finished: \(output.returnValue)")
75-
}
71+
func onAgentFinish(output: LangChain.AgentFinish) {}
7672

7773
func onAgentActionStart(action: LangChain.AgentAction) {
78-
print("Agent runs action: \(action.toolName) with input \(action.toolInput)")
7974
onAgentActionStart("\(action.toolName): \(action.toolInput)")
8075
}
8176

8277
func onAgentActionEnd(action: LangChain.AgentAction) {
83-
print(
84-
"""
85-
Agent finish running action: \
86-
\(action.toolName) with observation \
87-
\(action.observation ?? "")
88-
"""
89-
)
9078
onAgentActionEnd("\(action.toolName): \(action.toolInput)")
9179
}
9280

0 commit comments

Comments
 (0)