Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Question about state.memory.context #2

Open
varkarrus opened this issue Jun 28, 2020 · 1 comment
Open

Question about state.memory.context #2

varkarrus opened this issue Jun 28, 2020 · 1 comment

Comments

@varkarrus
Copy link

Is there a maximum length for this variable? like how normal memory has a limit of 1,000 characters? Or can you set it to longer without (major) issues?

@pierrevanhulst
Copy link

Thanks for implementing that feature, it opens a lot of doors!

I have questions too. Let's say I'm tracking the level of exhaustion of a character, and also have situations where the character can get their legs broken. If the character falls under a certain level of exhaustion (numeric variable), I use state.memory = { context: 'You are exhausted and can hardly take any physical actions' }. Thus, my first question: is there a way to keep the user memory memory along with the state.memory.context, or does it always replace it?

I tried to output the content of state.memory.context after setting it in a previous action, but it was empty, and so was the memory variable. How do we know what is registered in state.memory.context? How do we replace / remove its content? For instance, how could I add the "Your leg is broken, and you cannot run anymore" line to the exhaustion line above?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants