Ironclad / Ironclad/rivet

[Bug]: Documented "Loops: Chatbot" example doesn't work

Open
#391 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4.7k
Forks
388
PR merge metrics
No merged PRs in 30d

Description

### What happened?

[In the documented example](https://rivet.ironcladapp.com/docs/user-guide/loops#chatbot), the loop controller doesn't receive a default value for "message history".

I could only get the example to work by adding an empty array node to the default for data 1, so it gets seeded with `[]` rather than `undefined`.

### What was the expected functionality?

Documented example doesn't work

### Relevant screenshots

Fixed example:

![image](https://github.com/Ironclad/rivet/assets/1403548/d1ea97e4-fe3b-4754-a449-4564cde4be04)

Contributor guide

Open the contributing guide

Research direction

Open the documented Loops: Chatbot example at the linked documentation URL and inspect how the loop controller initializes message history, especially data 1. Confirm the example works when message history is seeded with an empty array, as shown in the reported fixed example.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.