Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
9b3b505
feat(a2a): upgrade to a2a-sdk 1.4.0 with dual-stack v0.3/v1.0 support
wujiaming-ai Dec 2, 2026
3e88e52
feat(faas): inject VEADK_A2A_PUBLIC_URL after deploy
wujiaming-ai Dec 2, 2026
46abcea
fix(faas): seed public URL before first release
wujiaming-ai Dec 2, 2026
e0aecb1
fix(runner): keep run_async signature introspectable
wujiaming-ai Dec 2, 2026
55d5a75
fix(faas): update rendered src projects in place
wujiaming-ai Dec 2, 2026
ccae68d
test: cover FaaS update and runner interceptor branches
wujiaming-ai Dec 2, 2026
9f74107
chore(lock): resolve a2a-sdk 1.4.0 and agentkit 0.9.3
wujiaming-ai Dec 3, 2026
758010c
test: align agentkit baseline assertions with 0.9.3
wujiaming-ai Dec 3, 2026
62d2908
fix(a2a): advertise streaming and auto-resolve CloudApp cards
wujiaming-ai Dec 3, 2026
3b76065
feat(a2a): add declarative config and AgentCard JWS signing
wujiaming-ai Dec 3, 2026
67db757
feat(a2a): add OIDC bearer auth, tenant routing and scoped stores
wujiaming-ai Dec 3, 2026
beb7fbe
feat(a2a): add push delivery and OpenTelemetry plugin wiring
wujiaming-ai Dec 3, 2026
d741339
feat(a2a): wire 1.x capabilities into VeA2AServer
wujiaming-ai Dec 3, 2026
9181363
test(a2a): cover 1.x server capabilities and push delivery
wujiaming-ai Dec 3, 2026
dbb1b5c
test(a2a): add real-cloud E2E for AIDAP, Identity Service and TOS
wujiaming-ai Dec 3, 2026
bd5a4ac
fix(a2a): convert KMS ECDSA DER signatures to JWS raw
wujiaming-ai Dec 3, 2026
f4edab9
fix(a2a): address review findings for push, tenant and FaaS updates
wujiaming-ai Dec 3, 2026
63902c4
fix(a2a): serve 1.x card at standard path for A2A Center
wujiaming-ai Dec 4, 2026
16c90b3
fix(a2a): allow overriding AgentCard version for A2A Center
wujiaming-ai Dec 4, 2026
f0c83cd
chore: require agentkit-sdk-python>=0.9.5
wujiaming-ai Dec 4, 2026
8a6855a
test: update agentkit-sdk-python baseline to 0.9.5
wujiaming-ai Dec 4, 2026
ed3de7f
fix(a2a): serve 1.x card from to_a2a standard path
wujiaming-ai Dec 4, 2026
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
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ authors = [
dependencies = [
"async-timeout>=5,<6; python_version < '3.11'", # asyncio.timeout backport
"pydantic-settings==2.10.1", # Config management
"a2a-sdk>=0.3.7,<1.0.0", # For Google Agent2Agent protocol
"a2a-sdk[http-server]>=1.4.0,<1.5.0", # For Google Agent2Agent protocol
"deprecated==1.2.18",
"google-adk>=2.7.0,<2.15.0", # For basic agent architecture
# litellm and sqlalchemy are required by code paths veadk always uses
Expand Down Expand Up @@ -55,7 +55,7 @@ dependencies = [
"python-docx>=1.1.0,<2", # Read and write Word documents in document_parse/doc_generate
"openpyxl>=3.1.0,<4", # Read and write Excel workbooks in document_parse/doc_generate
"vikingdb-python-sdk>=0.1.32", # For Viking DB
"agentkit-sdk-python>=0.8.5",
"agentkit-sdk-python>=0.9.5",
"websockets>=15,<16", # Stream temporary AgentKit Sandbox conversations
"openviking-sdk>=0.1.9",
"python-frontmatter==1.1.0",
Expand Down Expand Up @@ -136,7 +136,7 @@ harness = [
"headroom",
]
harness-sidecar = [
"agentkit-sdk-python>=0.8.5",
"agentkit-sdk-python>=0.9.5",
]
cli = []
sandbox = [
Expand Down
127 changes: 127 additions & 0 deletions tests/a2a/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Shared fixtures for the A2A server tests."""

from __future__ import annotations

import asyncio
from types import SimpleNamespace

import pytest
from a2a.types import (
Artifact,
Part,
Task,
TaskArtifactUpdateEvent,
TaskState,
TaskStatus,
TaskStatusUpdateEvent,
)

import veadk.a2a.ve_a2a_server as server_module
from veadk.a2a.ve_a2a_server import VeA2AServer


class StubExecutor:
"""Deterministic agent executor used by the A2A server tests."""

text = "pong"
delay = 0.0
artifact = False

def __init__(self, **kwargs):
self.kwargs = kwargs

async def execute(self, context, event_queue) -> None:
task = Task(
id=context.task_id,
context_id=context.context_id,
status=TaskStatus(state=TaskState.TASK_STATE_WORKING),
)
await event_queue.enqueue_event(task)
if self.delay:
await asyncio.sleep(self.delay)
if self.artifact:
await event_queue.enqueue_event(
TaskArtifactUpdateEvent(
task_id=context.task_id,
context_id=context.context_id,
artifact=Artifact(
artifact_id="a-1",
name="answer",
parts=[Part(text=self.text)],
),
last_chunk=True,
)
)
await event_queue.enqueue_event(
TaskStatusUpdateEvent(
task_id=context.task_id,
context_id=context.context_id,
status=TaskStatus(state=TaskState.TASK_STATE_COMPLETED),
)
)

async def cancel(self, context, event_queue) -> None:
return None


@pytest.fixture
def stub_executor(monkeypatch):
"""Patch the server to use ``StubExecutor`` instead of ADK."""
monkeypatch.setattr(server_module, "A2aAgentExecutor", StubExecutor)
monkeypatch.setattr(server_module, "Runner", lambda **kwargs: None)
return StubExecutor


@pytest.fixture
def agent():
return SimpleNamespace(name="agent", description="A test agent")


@pytest.fixture
def make_server(stub_executor, agent):
"""Build a ``VeA2AServer`` with the stub executor."""

def _make(config=None):
return VeA2AServer(
agent=agent,
url="http://testserver",
app_name="app",
short_term_memory=object(),
config=config,
)

return _make


def send_message_body(text="hi", method="SendMessage", message_id="m-1"):
"""Build a 1.0 JSON-RPC ``SendMessage`` body."""
return {
"jsonrpc": "2.0",
"id": 1,
"method": method,
"params": {
"message": {
"messageId": message_id,
"role": "ROLE_USER",
"parts": [{"text": text}],
},
"configuration": {},
},
}


V1 = {"A2A-Version": "1.0"}
Loading
Loading