-
Hi @JonasHelming, Coder agent has a set of tools in Theia AI which simply does the operations like fetching working Directory structure, fetching files in a specific directory, creating a new file or overriding an existing file and so on. And also we've a similar use case where 7 tools must be invoked in sequence in order to perform an operation, let's say saving a file in a specific folder in Theia AI. Here, each tool output should be sent back to my LLM, based on which remaining set of tools will be invoked. For this purpose, we implemented websockets in a backend API, however we came to know that Theia AI is not supporting Web Sockets. I've 2 questions at last:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @sudhe-er, I'm not sure I can follow you. We use the official OpenAI SDK to integrate with OpenAI. Specifically we are using the Internally this just calls the tool, places the result in a new message and sends a new request to OpenAI. All of these are just regular HTTP calls. Internally we are using Theia RCP to bridge the function calls from the backend to the frontend, but this is only an implementation detail of Theia, unrelated to the OpenAI SDK. AFAIK websockets are used for realtime use cases like voice which we do not support (yet) in Theia. I don't understand where the question is coming from. You can simply implement the tools and register them in Theia and they will be available for the LLM. You can then instruct the LLM on how to use the tools and in which order. |
Beta Was this translation helpful? Give feedback.
Hi @sudhe-er,
I'm not sure I can follow you. We use the official OpenAI SDK to integrate with OpenAI. Specifically we are using the
runTools
convenience feature. There we can hand over tools as functions and the OpenAI SDK makes sure to call them when the LLM indicates to.Internally this just calls the tool, places the result in a new message and sends a new request to OpenAI. All of these are just regular HTTP calls.
Internally we are using Theia RCP to bridge the function calls from the backend to the frontend, but this is only an implementation detail of Theia, unrelated to the OpenAI SDK.
AFAIK websockets are used for realtime use cases like voice which we do not support (yet) in Theia.