diff options
| author | Arun Isaac | 2026-11-12 01:56:21 +0000 |
|---|---|---|
| committer | Arun Isaac | 2026-11-12 01:59:44 +0000 |
| commit | 92031621d62607bedb680ac614196eeb404bcd0f (patch) | |
| tree | 3fd544c13c9ccbdd94277d3e5eb0f0ef89618d20 /tests | |
| parent | aea06b2bd12a2f6b9c87fccb6b8f9bb1255aa73d (diff) | |
| download | kaagum-92031621d62607bedb680ac614196eeb404bcd0f.tar.gz kaagum-92031621d62607bedb680ac614196eeb404bcd0f.tar.lz kaagum-92031621d62607bedb680ac614196eeb404bcd0f.zip | |
Replace <llm-response> json field with more specific fields.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tea.scm | 51 |
1 files changed, 18 insertions, 33 deletions
diff --git a/tests/tea.scm b/tests/tea.scm index d7f3c03..96c0155 100644 --- a/tests/tea.scm +++ b/tests/tea.scm @@ -41,23 +41,15 @@ (test-assert "handle LLM response" (run-with-state (acp-effects (llm-response 0 - `(("id" . "gen-1793743825") - ("model" . "anthropic/claude-haiku-5.5") - ("choices" - . - #((("message" - ("role" . "assistant") - ("content" . "Hello! How can I help you today?"))))) - ("usage" - ("prompt_tokens" . 1770) - ("completion_tokens" . 13) - ("total_tokens" . 1783) - ("cost" . 3.601e-4) - ("prompt_tokens_details" - ("cached_tokens" . 0) - ("cache_write_tokens" . 1766)) - ("completion_tokens_details" - ("reasoning_tokens" . 0))))) + '(("role" . "assistant") + ("content" . "Hello! How can I help you today?")) + 1770 + 13 + 0 + 0 + 1766 + 3.601e-4 + #f) %models '()) (state #f 0 1 '() @@ -66,22 +58,15 @@ (test-assert "handle LLM response without \"cached_tokens\" field in usage" (run-with-state (acp-effects (llm-response 0 - `(("id" . "gen-1793743825") - ("model" . "anthropic/claude-haiku-5.5") - ("choices" - . - #((("message" - ("role" . "assistant") - ("content" . "Hello! How can I help you today?"))))) - ("usage" - ("prompt_tokens" . 1770) - ("completion_tokens" . 13) - ("total_tokens" . 1783) - ("cost" . 3.601e-4) - ("prompt_tokens_details" - ("cache_write_tokens" . 1766)) - ("completion_tokens_details" - ("reasoning_tokens" . 0))))) + '(("role" . "assistant") + ("content" . "Hello! How can I help you today?")) + 1770 + 13 + 0 + 0 + 1766 + 3.601e-4 + #f) %models '()) (state #f 0 1 '() |
