Skip to content

Commit d808755

Browse files
committed
Merge branch 'master' into ROB-2060-slack-sink-proxy
2 parents 8afc99e + 72a7376 commit d808755

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/robusta/core/model/base_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ class HolmesChatParams(HolmesParams):
191191
conversation_history: Optional[list[dict]] = None
192192
render_graph_images: bool = False
193193
stream: bool = Field(default=False)
194+
additional_system_prompt: Optional[str] = None
194195

195196

196197
class HolmesIssueChatParams(HolmesChatParams):

src/robusta/core/playbooks/internal/ai_integration.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,11 @@ def holmes_chat(event: ExecutionBaseEvent, params: HolmesChatParams):
340340

341341
try:
342342
holmes_req = HolmesChatRequest(
343-
ask=params.ask, conversation_history=params.conversation_history, model=params.model, stream=params.stream
343+
ask=params.ask,
344+
conversation_history=params.conversation_history,
345+
model=params.model,
346+
stream=params.stream,
347+
additional_system_prompt=params.additional_system_prompt
344348
)
345349
url = f"{holmes_url}/api/chat"
346350
if params.stream:

src/robusta/core/reporting/holmes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class HolmesChatRequest(BaseModel):
3939
conversation_history: Optional[List[dict]] = None
4040
model: Optional[str] = None
4141
stream: bool = Field(default=False)
42+
additional_system_prompt: Optional[str] = None
4243

4344

4445
class HolmesIssueChatRequest(HolmesChatRequest):

0 commit comments

Comments
 (0)