Skip to content

Commit 637be7f

Browse files
alonelishclaude
andcommitted
Add is_internal flag to HolmesChat schemas
Optional boolean alongside the other chat-analytics fields (request_source, conversation_id, etc.) so the FE can mark internal/test traffic and the Holmes server can filter it out of usage dashboards. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ba8f3f9 commit 637be7f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/robusta/core/model/base_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class HolmesChatParams(HolmesParams):
212212
source_ref: Optional[str] = None
213213
conversation_id: Optional[str] = None
214214
conversation_source: Optional[str] = None
215+
is_internal: Optional[bool] = None
215216
meta: Optional[Dict[str, Any]] = None
216217

217218
class Config:

src/robusta/core/reporting/holmes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class HolmesChatRequest(BaseModel):
5656
source_ref: Optional[str] = None
5757
conversation_id: Optional[str] = None
5858
conversation_source: Optional[str] = None
59+
is_internal: Optional[bool] = None
5960
meta: Optional[Dict[str, Any]] = None
6061

6162
class Config:

0 commit comments

Comments
 (0)