Is it possible to use both 'retrieval' and 'function' with Assistant?

assistant = client.beta.assistants.create(
name=“PaperBot”,
instructions=“You are a Knowledge-bot. Use your knowledge to make best respond.”,
tools=[{“type”: “retrieval”, “function”: function}],
model=‘gpt-3.5-turbo-1106’,
file_ids=[file.id]
)

If i want to use both retrieval and function calling, is it possible?

I tried “type”: “retrieval, function”, but it occurred error.

And then i tried the way i wrote above, but during debugging, assistant doesn’t seem to use both, but acts like ‘retrieval’ only.

Perhaps I’ve missed something and assistant worked perfectly? or Assistant API doesn’t support multi-tools yet?

(Sorry for bad english…)

try:
tools=[{“type”: “retrieval”}, {“type”: "function"}],

Thanks a lot! I miswrote the reply and deleted it…

Take my best appreciation please :slight_smile:

1 Like