transitive-bullshit / agentic

AI agent stdlib that works with any LLM and TypeScript AI SDK.
https://agentic.so
MIT License
16.22k stars 2.12k forks source link

Support for Function calling #584

Closed ChoqueCastroLD closed 3 months ago

ChoqueCastroLD commented 1 year ago

Describe the feature

It would be nice to have support for function calling as seen in https://platform.openai.com/docs/guides/gpt/function-calling for the models gpt-3.5-turbo-0613 and gpt-4-0613

transitive-bullshit commented 1 year ago

Agreed.

I added a preliminary version to openai-fetch here: https://github.com/rileytomasek/openai-fetch/pull/26

Support for this package would definitely be appreciated.

marknauf commented 1 year ago

This would be a huge feature upgrade. Is anyone currently working on this?

liyf1 commented 1 year ago

Looking forward to !!

Zedmerlol commented 1 year ago

+1

panlina commented 1 year ago

When can we expect this to be in?

shiyuesong commented 1 year ago

Any news?

panlina commented 1 year ago

This repo and issue has been inactive for long. Is there any one working on this feature now?

mrahmadt commented 1 year ago

Function calling is working fine with the current code. The issue is with returning the function call output to chatgpt

@transitive-bullshit I'm working on modifying the code to accept function output and (Role function) and send it to chatgpt

I hope you can let us know if you are already doing it or if you will accept the changes (I can see many pull requests are not accepted/rejected)

transitive-bullshit commented 3 months ago

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.