You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have developed a configuration file that dynamically creates assistants and tools when passed to a service. While the same configuration works correctly in Visual Studio Code, I encounter errors when running it in Langgraph Studio.
My Graph
My Code
importasynciofromcoloramaimportForefromapp.services.langchain_serviceimportLangchainServicefromapp.utils.constantsimportsamplefromapp.utils.loggerimportsetup_loggingsetup_logging()
asyncdefprint_message(response):
print(
Fore.GREEN+f"Assistant: {response.text} Index -> {response.index}",
flush=True,
)
langchain_service=LangchainService(
llm_config=sample.get("llm_config"),
on_partial_response=print_message,
assistants=sample.get("assistants"),
)
graph=langchain_service.graphlangchain_service.set_call_sid("1")
if__name__=="__main__":
try:
asyncdefmain():
whileTrue:
# Get input from the user in the consoleuser_input=input(Fore.RED+"You: ")
# Exit loop if user types 'exit'ifuser_input.lower() =="exit":
print("Exiting chat.")
break# Stream response from langchain serviceawaitlangchain_service.run(user_input, stream_output=True)
# Run the main event loopasyncio.run(main())
exceptKeyboardInterrupt:
print("Exiting chat ...")
When running in VS Code
When running in LangGraph Studio
The text was updated successfully, but these errors were encountered:
I have developed a configuration file that dynamically creates assistants and tools when passed to a service. While the same configuration works correctly in Visual Studio Code, I encounter errors when running it in Langgraph Studio.
My Graph
My Code
When running in VS Code
When running in LangGraph Studio
The text was updated successfully, but these errors were encountered: