Class representing a toolkit for interacting with AWS Step Functions. It initializes the AWS Step Functions tools and provides them as tools for the agent.

Example


const toolkit = new AWSSfnToolkit({
name: "onboard-new-client-workflow",
description:
"Onboard new client workflow. Can also be used to get status of any executing workflow or state machine.",
stateMachineArn:
"arn:aws:states:us-east-1:1234567890:stateMachine:my-state-machine",
region: "<your Sfn's region>",
accessKeyId: "<your access key id>",
secretAccessKey: "<your secret access key>",
});


const result = await toolkit.invoke({
input: "Onboard john doe (john@example.com) as a new client.",
});

Hierarchy (view full)

Constructors

Properties

Constructors

Properties

asl: string
stateMachineArn: string
tools: ToolInterface[]

Generated using TypeDoc