You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/[platform]/ai/conversation/tools/index.mdx
+30-26Lines changed: 30 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ export function getStaticProps(context) {
30
30
31
31
32
32
33
-
Tools allow LLMs to take action or query information so it can respond with up to date information. There are a few different ways to define LLM tools in the Amplify AI kit.
33
+
Tools allow LLMs to take action or query information so it can respond with up to date information. There are a few different ways to define LLM tools in the Amplify AI kit.
34
34
35
35
1. Model tools
36
36
2. Query tools
@@ -75,7 +75,7 @@ This will let the LLM list and filter `Post` records. Because the data schema ha
75
75
76
76
## Query tools
77
77
78
-
You can also give the LLM access to custom queries. You can define a custom query with a [Function](/[platform]/build-a-backend/functions/set-up-function/) handler and then reference that custom query as a tool.
78
+
You can also give the LLM access to custom queries. You can define a custom query with a [Function](/[platform]/build-a-backend/functions/set-up-function/) handler and then reference that custom query as a tool.
79
79
80
80
```ts title="amplify/data/resource.ts"
81
81
// highlight-start
@@ -117,7 +117,7 @@ const schema = a.schema({
117
117
});
118
118
```
119
119
120
-
Because the definition of the query itself has the shape of the inputs and outputs (arguments and returns), the Amplify data tool can automatically tell the LLM exactly how to call the custom query.
120
+
Because the definition of the query itself has the shape of the inputs and outputs (arguments and returns), the Amplify data tool can automatically tell the LLM exactly how to call the custom query.
0 commit comments