wandb / weave

Weave is a toolkit for developing AI-powered applications, built by Weights & Biases.
https://wandb.me/weave
Apache License 2.0
697 stars 62 forks source link

chore: add derived summary fields #2213

Closed gtarpenning closed 1 month ago

gtarpenning commented 2 months ago

https://wandb.atlassian.net/browse/WB-20561

Add derived fields to the summary under the weave key, immediately after db read.

When a call is running, the derived fields will look like:

"summary": {
   "weave": {
      "status": "running",
      "trace_name": "name",
   }
}

When completed:

"summary": {
   "weave": {
      "status": "success",
      "trace_name": "name",
      "latency_ms": 1222,
      "usage": {....}
   }
}
circle-job-mirror[bot] commented 2 months ago

Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=3731fb7246cc78bcbd91deb3b3d6eeaba3fdbb21