Chat in Studio is disabled and state is not detected when state graph is not directly created in the current scope #1511
Replies: 2 comments 6 replies
-
Hello! Is this happening with LGP or |
Beta Was this translation helpful? Give feedback.
5 replies
-
Got to love it when you end up answering you're own question hahaha, you just need that bit of external input to change your thought patterns I guess Annotation.spec being the missing key! :-) I'm pretty sure I tried this before but don't think would have got there without realising the version wasn't right. Thanks type MyCompiledGraph = CompiledStateGraph<
typeof MyStateAnnotation.State,
UpdateType<typeof MyStateAnnotation.spec>,
string,
typeof MyStateAnnotation.spec,
typeof MyStateAnnotation.spec
> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering if anyone has experienced this or can shed any light on where I'm going wrong here please?
I've been banging my head against a wall trying to work out why I can't get the 'chat' feature or my schema to show up in studio. So I spent a day trying to get to the bottom of it and finally worked out roughly what the issue is, but I can't get to the bottom of the root cause. Any assistance would be really appreciated, I must really be missing something here
So if I have a single file that is as follows, it works fine
If I split that file into 2 parts and import the functiomn that creates the state, it no longer works. The graph itself works absolutely fine, but Studio will not recognise the schema at all. This is just a very simplistic version of the system I am building, but ultimatey having the state graph created elsewhere and referenced being a part of the system requirement to facilitate other things. Everything in the system works fine in terms of it's actual graph functionality, I can invoke and stream it and I have no problems. As soon as I try and debug it in studio, the schema is not recognised.
So I ended up just spending a whole day boiling it down to this simple example which was failing and realised this is a more fundamental problem and that hopefully have ruled out the more complex aspects of my system getting in the way.
Beta Was this translation helpful? Give feedback.
All reactions