Skip to content
Closed
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
3 changes: 2 additions & 1 deletion src/adcp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
build_synthetic_capabilities,
validate_capabilities,
)
from adcp.client import ADCPClient, ADCPMultiAgentClient
from adcp.client import ADCPClient, ADCPMultiAgentClient, Checkpoint
from adcp.exceptions import ( # noqa: F401
AdagentsNotFoundError,
AdagentsTimeoutError,
Expand Down Expand Up @@ -566,6 +566,7 @@ def get_adcp_version() -> str:
# Client classes
"ADCPClient",
"ADCPMultiAgentClient",
"Checkpoint",
"RegistryClient",
"PropertyRegistry",
"RegistrySync",
Expand Down
4 changes: 2 additions & 2 deletions src/adcp/protocols/a2a.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def _process_task_response(self, task: Task, debug_info: DebugInfo | None) -> Ta
"""Process a Task response from A2A into our TaskResult format."""
task_state = task.status.state

if task_state == "completed":
if task_state == TaskState.completed:
# Extract the result from the artifacts array
result_data = self._extract_result_from_task(task)

Expand All @@ -542,7 +542,7 @@ def _process_task_response(self, task: Task, debug_info: DebugInfo | None) -> Ta
},
debug_info=debug_info,
)
elif task_state == "failed":
elif task_state == TaskState.failed:
# Protocol-level failure - extract error message from TextPart
error_msg = self._extract_text_from_task(task) or "Task failed"
return TaskResult[Any](
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/public_api_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"ChangeHandler",
"CheckGovernanceRequest",
"CheckGovernanceResponse",
"Checkpoint",
"ComplyTestControllerRequest",
"ComplyTestControllerResponse",
"ConsentBasis",
Expand Down
Loading