Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions test/snapshots/abort/should_abort_during_active_streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,13 @@ conversations:
content: Say 'abort_recovery_ok'.
- role: assistant
content: abort_recovery_ok
- messages:
- role: system
content: ${system}
- role: user
content: Write a very long essay about the history of computing, covering every decade from the 1940s to the 2020s in
great detail.
- role: user
content: Say 'abort_recovery_ok'.
- role: assistant
content: abort_recovery_ok
28 changes: 28 additions & 0 deletions test/snapshots/session/should_abort_a_session.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,31 @@ conversations:
content: What is 2+2?
- role: assistant
content: 2 + 2 = 4
- messages:
- role: system
content: ${system}
- role: user
content: run the shell command 'sleep 100' (note this works on both bash and PowerShell)
- role: assistant
content: I'll run the sleep command for 100 seconds.
tool_calls:
- id: toolcall_0
type: function
function:
name: report_intent
arguments: '{"intent":"Running sleep command"}'
- id: toolcall_1
type: function
function:
name: ${shell}
arguments: '{"command":"sleep 100","description":"Run sleep 100 command","mode":"sync","initial_wait":105}'
- role: tool
tool_call_id: toolcall_0
content: The execution of this tool, or a previous tool was interrupted.
- role: tool
tool_call_id: toolcall_1
content: The execution of this tool, or a previous tool was interrupted.
- role: user
content: What is 2+2?
- role: assistant
content: 2 + 2 = 4
Loading