feat: stabilize tool calls in contexts

Aperta
#1,521 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai

Direzione di ricerca

Start by tracing how aact adds tool calls to the model context and how components attach tools; the issue names no files or tests. Investigate the proposed approaches and verify whether prefill-cache resetting is a real problem, including the noted Hugging Face limitation. Done means establishing a suitable way to stabilize context when tools are enabled or disabled.

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

Descrizione

area/tools enhancement needs-design p2

Mellea only adds tool calls to the model's context when you pass tool_calls=True to aact. This is problematic since it causes the system prompt for most models to change when tools are enabled / disabled for a given mellea call.

We should investigate:

  • always passing tools into the model context but changing whether the model is allowed to call them (this would work for all but the huggingface backend)
  • flagging when tools are updated; the main issue would be with components that have tools attached to them
  • ensure this prefill cache resetting is a real problem
Lingua principale
Python
Stelle
1.8k
Fork
161
Merge medio
4g 3h
PR unite (30g)
45

Preparare l'ambiente

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 generative-computing/mellea

Tutte le issue di generative-computing/mellea

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.