Azure / Azure/azure-sdk-for-python

azure-ai-* tracing: support non-function tools

Aperta
#39,995 0 commenti 1 reazione 1 assegnatario Vedi su GitHub

@M-Hietala ci sta già lavorando.

Dal 10/3/2025.

AI Projects Client feature-request
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
213

Descrizione

We don't record inputs and outputs for any tool call that's not function (code_interpreter, azure_ai_search, file_search, etc).

So traces contains something like this

```json
{"tool_calls": [{"id": "call_bA08K28rVvFhP99gqq1EHkh9", "type": "code_interpreter", "function": null}]}
```

when the actual response looks like

```json
{"tool_calls": [{"id": "call_IQFW4HNEzfoRhKHw1htd7feq", "type": "code_interpreter", "code_interpreter": {"input": "# Reversing the user-provided string\r\nuser_input = \"just some random input\"\r\nreversed_string = user_input[::-1]\r\nreversed_string", "outputs": []}}]}
```

---
We should capture the details for arbitrary tools when content recording is enabled. We might want to define a format for a few tools (e.g. azure search) if/when it's formalized in the typespec. Currently it's just `dict`.

https://github.com/Azure/azure-sdk-for-python/blob/08e7c8adb4434aa76eb4a439b644aed7fe41c0f4/sdk/ai/azure-ai-projects/azure/ai/projects/models/_models.py#L4437

//cc @jhakulin @M-Hietala

Guida per i contributori

Apri la guida per i contributori

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.