Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions adk/concepts/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,18 @@ export default new Trigger({
});
```

```ts From a tool highlight={1,6}
import { Autonomous, actions } from "@botpress/runtime"
```ts From a tool highlight={1,8}
import { Autonomous, actions, z } from "@botpress/runtime"

export default new Autonomous.Tool({
name: "someTool",
description: "A tool that does something",
input: z.object({}),
output: z.object({ result: z.string() }),
handler: async () => {
const result = await actions.doSomething()
}
// Other logic
return { result }
},
})
```

Expand Down
Loading
Loading