Chaining function calls

Aperta
#43 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
azure
Ambito
ai, api

Direzione di ricerca

Nell’issue non sono identificati file, test o punti di ingresso. Inizia individuando l’esempio di function-calling del repository e traccia come viene rappresentata una singola chiamata; il lavoro è completato quando l’esempio calculator può eseguire in sequenza divide(10,2) e multiply(5,3), con entrambe le chiamate rappresentate nella risposta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce

Hello, for the time being, it seems that the model can determine which function to call but it seems to be limited to only one function, unless I missed something. In the scenario where I split the calculator into four distinct functions (add, divide, substract, multiply) and I would input the following query:

Calculate the total of 10/2 multiplied by 3

The model will determine that divide must be called, but it will not understand that multiply must also be called. Is it something that will be available?

Expected/desired behavior

{ "role": "assistant", "function_calls":[ { "name": "divide", "arguments": "{\n\"num1\": 10,\n\"num2\": 2\n}" }, { "name": "multiply", "arguments": "{\n\"num1\": 5,\n\"num2\": 3\n}" } ] }


Thanks! We'll be in touch soon.

Lingua principale
Jupyter Notebook
Stelle
1.4k
Fork
455
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure-Samples/openai

Tutte le issue di Azure-Samples/openai

Issue simili

Altre issue su AI Infra & Agents

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.