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
@@ -86,7 +86,7 @@ export default new Conversation({
86
86
})
87
87
```
88
88
89
-
This is useful for tools that are only relevant to a single conversation.
89
+
This is useful for tools that are only relevant to a single type of conversation.
90
90
91
91
## Writing good descriptions
92
92
@@ -115,7 +115,7 @@ Tools can throw signals to influence the AI loop without returning a normal resu
115
115
116
116
### ThinkSignal
117
117
118
-
Throws context back into the model's reasoning without producing a tool output. Useful when a tool finds no results and you want the model to try a different approach:
118
+
A `ThinkSignal` throws context back into the model's reasoning without producing a tool output. This is useful when a tool finds no results and you want the model to try a different approach:
Actions are reusable functions that can be called from anywhere in your agent (conversations, workflows, other actions, or external API clients). Unlike standalone tools, which only exist inside `execute()`, actions are shared primitives. You can convert any action into a tool:
139
+
Actions are reusable functions that can be called from anywhere in your agent—conversations, workflows, other actions, or external API clients. Tools only work inside `execute()`, where the AI model decides when to call them based on the conversation.
140
140
141
-
```typescript
141
+
You can convert any action into a tool by calling its `asTool()` method and passing it into `tools`:
@@ -152,13 +154,15 @@ export default new Conversation({
152
154
})
153
155
```
154
156
155
-
See [Build Actions](/adk/external/actions) for how to define actions.
157
+
<Tip>
158
+
Check out our guide on [building actions](/adk/external/actions) for more information.
159
+
</Tip>
156
160
157
161
## Workflows as tools
158
162
159
163
Workflows are long-running background processes that can span multiple steps and run independently of the conversation. Converting a workflow to a tool lets the model kick one off:
160
164
161
-
```typescript
165
+
```typescript highlight={9}
162
166
import { Conversation } from"@botpress/runtime"
163
167
importorderWorkflowfrom"../workflows/order"
164
168
@@ -173,13 +177,15 @@ export default new Conversation({
173
177
})
174
178
```
175
179
176
-
See [Create workflows](/adk/workflows/create) for how to define workflows.
180
+
<Tip>
181
+
Check out our guide on [creating workflows](/adk/workflows/create) for more information.
182
+
</Tip>
177
183
178
184
## Calling actions from tools
179
185
180
186
Tools can call actions for reusable logic:
181
187
182
-
```typescript
188
+
```typescript highlight={8}
183
189
import { Autonomous, actions, z } from"@botpress/runtime"
0 commit comments