Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0thernet authored Jun 17, 2024
1 parent 5dd01fc commit eb59624
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

The Substrate TypeScript SDK is the recommended way to interact with the Substrate API from server-side TypeScript or JavaScript.

<img src="https://guides.substrate.run/unified-diagram.svg"/>

## Documentation

If you're just getting started, head to [guides.substrate.run](https://guides.substrate.run/).
Expand Down Expand Up @@ -44,10 +46,10 @@ const summary = new GenerateText({
});
```

Run the graph chaining `story``summary`. This is a simple example, but you can easily build arbitrarily complex branching workflows.
Run the graph chaining `story``summary` by passing the terminal node to `substrate.run`.

```typescript
const response = await substrate.run(story, summary);
const response = await substrate.run(summary);
```

Get the output of the summary node by passing it to `response.get`.
Expand Down

0 comments on commit eb59624

Please sign in to comment.