Add automation status surface
This commit is contained in:
parent
3f85274916
commit
ffe10f098e
20 changed files with 1732 additions and 11 deletions
|
|
@ -37,6 +37,10 @@ def _payload(sinks: list[dict[str, Any]]) -> dict[str, Any]:
|
|||
"output_validated": True,
|
||||
"review_required": False,
|
||||
"validation_error": None,
|
||||
"llm_response_metadata": {
|
||||
"finish_reason": "stop",
|
||||
"usage": {"output_tokens": 50},
|
||||
},
|
||||
}
|
||||
],
|
||||
}
|
||||
|
|
@ -62,6 +66,8 @@ def test_working_memory_sink_writes_idempotently(tmp_path) -> None:
|
|||
assert "output_validated: true" in text
|
||||
assert "review_required: false" in text
|
||||
assert "model: test-model" in text
|
||||
assert "LLM response metadata:" in text
|
||||
assert '"finish_reason": "stop"' in text
|
||||
assert "State Hub has loose ends." in text
|
||||
|
||||
|
||||
|
|
@ -113,6 +119,10 @@ def test_state_hub_progress_sink_posts(monkeypatch) -> None:
|
|||
assert posts[0]["json"]["detail"]["activity_core_run_id"] == payload_run_id()
|
||||
assert posts[0]["json"]["detail"]["output_validated"] is True
|
||||
assert posts[0]["json"]["detail"]["review_required"] is False
|
||||
assert posts[0]["json"]["detail"]["llm_response_metadata"] == {
|
||||
"finish_reason": "stop",
|
||||
"usage": {"output_tokens": 50},
|
||||
}
|
||||
|
||||
|
||||
def test_state_hub_progress_includes_prior_working_memory_path(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue