Skip to content

Commit 65421d4

Browse files
committed
fix
1 parent 2d0e567 commit 65421d4

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

src/a2a/compat/v0_3/jsonrpc_adapter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ async def handle_request(
120120
CoreInvalidRequestError(data=str(e)),
121121
)
122122

123-
call_context = self._context_builder.bui
124-
ld(request)
123+
call_context = self._context_builder.build(request)
125124
call_context.tenant = (
126125
getattr(specific_request.params, 'tenant', '')
127126
if hasattr(specific_request, 'params')

task.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Task: Check if anything needs to be fixed in ITK/TCK
2+
3+
## Todo
4+
- [x] Clarify if "itk" means TCK or something else. (It is a directory `itk` with a sample agent)
5+
- [x] Search for `itk` or `tck` in the codebase to identify relevant files. (Found `itk/main.py`)
6+
- [x] Check if tests in those files need similar fixes (async card modifiers). (No fixes needed, doesn't use `card_modifier` or `helpers`)
7+
- [ ] Run mandatory checks.
8+
9+
## Mandatory Checks
10+
1. **Formatting & Linting**:
11+
```bash
12+
uv run ruff check --fix
13+
uv run ruff format
14+
```
15+
16+
2. **Type Checking**:
17+
```bash
18+
uv run mypy src
19+
uv run pyright src
20+
```
21+
22+
3. **Testing**:
23+
```bash
24+
uv run pytest
25+
```
26+
27+
4. **Coverage**:
28+
```bash
29+
uv run pytest --cov=src --cov-report=term-missing
30+
```

tests/integration/test_client_server_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ async def get_extended_agent_card_mock_3(*args, **kwargs):
866866
mock_request_handler.on_get_extended_agent_card.side_effect = (
867867
get_extended_agent_card_mock_3 # type: ignore[union-attr]
868868
)
869+
869870
async def async_signer(card: AgentCard) -> AgentCard:
870871
return signer(card)
871872

0 commit comments

Comments
 (0)