Cost Purge
POST/cost/purge
Cost Purge
Request
- application/json
Body
required
project_id Project Id (string)required
query
object
required
The top-level object for querying traced calls.
The Query
wraps a single $expr
, which uses Mongo-style aggregation operators
to filter calls. This expression can combine logical conditions, comparisons,
type conversions, and string matching.
Examples:
# Filter calls where op_name == "predict"
\{
"$expr": \{
"$eq": [
\{"$getField": "op_name"\},
\{"$literal": "predict"\}
]
\}
\}
# Filter where a call's display name contains "llm"
\{
"$expr": \{
"$contains": \{
"input": \{"$getField": "display_name"\},
"substr": \{"$literal": "llm"\},
"case_insensitive": true
\}
\}
\}
$expr objectrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...