Skip to content

Commit ec1aeaf

Browse files
authored
Expose searchWeb, readWebpage and calculator tools to omnibot (#1930)
1 parent 41ae6cb commit ec1aeaf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

packages/patterns/default-app.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import ChatbotOutliner from "./chatbot-outliner.tsx";
1818
import { default as Note } from "./note.tsx";
1919
import BacklinksIndex, { type MentionableCharm } from "./backlinks-index.tsx";
2020
import ChatList from "./chatbot-list-view.tsx";
21+
import { calculator, readWebpage, searchWeb } from "./common-tools.tsx";
2122

2223
export type Charm = {
2324
[NAME]?: string;
@@ -112,7 +113,17 @@ export default recipe<CharmsListInput, CharmsListOutput>(
112113

113114
const omnibot = Chatbot({
114115
messages: [],
115-
tools: undefined,
116+
tools: {
117+
searchWeb: {
118+
pattern: searchWeb,
119+
},
120+
readWebpage: {
121+
pattern: readWebpage,
122+
},
123+
calculator: {
124+
pattern: calculator,
125+
},
126+
},
116127
});
117128

118129
return {

0 commit comments

Comments
 (0)