fix(sdk): keep query internal and return session identity
This commit is contained in:
1 parent
9976a87e97
commit
1950259ce1
25 files changed
+229
-111
No files matched your search
@@ -7,12 +7,12 @@ import argparse
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from deepseek_harness import CommandExecution, DeepSeekHarness, RunResult
|
||||
from deepseek_harness import RunCommandResult, DeepSeekHarness, RunResult
|
||||
|
||||
|
||||
def display(result: RunResult | CommandExecution) -> None:
|
||||
def display(result: RunResult | RunCommandResult) -> None:
|
||||
"""Print the input's result and stop on a reported failure."""
|
||||
if isinstance(result, CommandExecution):
|
||||
if isinstance(result, RunCommandResult):
|
||||
print(f"Command {result.command_id}: {result.result.kind}")
|
||||
if result.result.kind == "error":
|
||||
raise RuntimeError(result.result.text)
|
||||
|
||||
Reference in new issue
Block a user