khoj icon indicating copy to clipboard operation
khoj copied to clipboard

[IDEA] using function calling to integrate more tools

Open thinker007 opened this issue 1 year ago • 9 comments

Describe the feature you'd like

give agent ability add other tools rather than build search and web browser

for example integrade dify workflow and tools

thinker007 avatar Jul 07 '24 02:07 thinker007

hey @thinker007 , could you describe more of what you're looking for? Do you want another tool similar to Dify? https://dify.ai/blog/dify-ai-workflow

sabaimran avatar Sep 03 '24 20:09 sabaimran

hey @thinker007 , could you describe more of what you're looking for? Do you want another tool similar to Dify? https://dify.ai/blog/dify-ai-workflow

yes dify

thinker007 avatar Sep 08 '24 17:09 thinker007

I think it would be beneficial to allow agents to define custom actions in a more generic manner, similar to OpenAI's approach with function calling in GPTs. This would offer greater flexibility for integrating various workflows and tools, extending beyond the built-in options currently available.

DavidLMS avatar Nov 07 '24 08:11 DavidLMS

I think it would be beneficial to allow agents to define custom actions in a more generic manner, similar to OpenAI's approach with function calling in GPTs. This would offer greater flexibility for integrating various workflows and tools, extending beyond the built-in options currently available.

or let devs integrate tools made from dify , we don't need second dify, what we need is integrate dify tools workflow into khoj agents

thinker007 avatar Nov 08 '24 09:11 thinker007

By the way dify can turn tools into rest https api, if khoj can let devs integrate general http service it will be great!

thinker007 avatar Nov 08 '24 09:11 thinker007

I agree, even a simple implementation of a tool framework that lets users setup different request formats to api endpoints and call them with assigned /commands would be great.

felipemeres avatar Nov 21 '24 14:11 felipemeres

These sound like really great ideas! Can you give me an idea of some tools you'd integrate? What would they do, how would you use them, how would you handle the responses? Be as detailed as possible, as that would help us design the feature.

I think the ideal tool might be something that can be called via an http request, like @thinker007 mentioned, where of course you can define the input parameters / body structure, and how to handle the response.

Unless the tool can just be text in - text out from an LLM.

I think custom code execution would probably be out of scope.

sabaimran avatar Nov 21 '24 15:11 sabaimran

These sound like really great ideas! Can you give me an idea of some tools you'd integrate? What would they do, how would you use them, how would you handle the responses? Be as detailed as possible, as that would help us design the feature.

I think the ideal tool might be something that can be called via an http request, like @thinker007 mentioned, where of course you can define the input parameters / body structure, and how to handle the response.

Unless the tool can just be text in - text out from an LLM.

I think custom code execution would probably be out of scope.

Yes out there is plenty of agent tools just like dify, in khoj we just need a good way to integrate them

thinker007 avatar Nov 21 '24 15:11 thinker007

The External Knowledge feature of Dify could be a good reference. Essentially you setup the api endpoint and any agent can call this function to retrieve its output as context.

felipemeres avatar Nov 21 '24 23:11 felipemeres