agent-starter-pack 0.11.0__py3-none-any.whl → 0.11.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/METADATA +9 -2
- {agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/RECORD +7 -14
- src/base_template/{% if cookiecutter.cicd_runner == 'github_actions' %}.github{% else %}unused_github{% endif %}/workflows/deploy-to-prod.yaml +2 -0
- src/cli/commands/enhance.py +70 -16
- agents/adk_gemini_fullstack/.template/templateconfig.yaml +0 -39
- agents/adk_gemini_fullstack/README.md +0 -27
- agents/adk_gemini_fullstack/app/agent.py +0 -412
- agents/adk_gemini_fullstack/app/config.py +0 -46
- agents/adk_gemini_fullstack/notebooks/adk_app_testing.ipynb +0 -355
- agents/adk_gemini_fullstack/notebooks/evaluating_adk_agent.ipynb +0 -1528
- agents/adk_gemini_fullstack/tests/integration/test_agent.py +0 -58
- {agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/WHEEL +0 -0
- {agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/entry_points.txt +0 -0
- {agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,58 +0,0 @@
|
|
1
|
-
# Copyright 2025 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
# mypy: disable-error-code="union-attr"
|
16
|
-
from google.adk.agents.run_config import RunConfig, StreamingMode
|
17
|
-
from google.adk.runners import Runner
|
18
|
-
from google.adk.sessions import InMemorySessionService
|
19
|
-
from google.genai import types
|
20
|
-
|
21
|
-
from app.agent import root_agent
|
22
|
-
|
23
|
-
|
24
|
-
def test_agent_stream() -> None:
|
25
|
-
"""
|
26
|
-
Integration test for the agent stream functionality.
|
27
|
-
Tests that the agent returns valid streaming responses.
|
28
|
-
"""
|
29
|
-
|
30
|
-
session_service = InMemorySessionService()
|
31
|
-
|
32
|
-
session = session_service.create_session_sync(user_id="test_user", app_name="test")
|
33
|
-
runner = Runner(agent=root_agent, session_service=session_service, app_name="test")
|
34
|
-
|
35
|
-
message = types.Content(
|
36
|
-
role="user", parts=[types.Part.from_text(text="Why is the sky blue?")]
|
37
|
-
)
|
38
|
-
|
39
|
-
events = list(
|
40
|
-
runner.run(
|
41
|
-
new_message=message,
|
42
|
-
user_id="test_user",
|
43
|
-
session_id=session.id,
|
44
|
-
run_config=RunConfig(streaming_mode=StreamingMode.SSE),
|
45
|
-
)
|
46
|
-
)
|
47
|
-
assert len(events) > 0, "Expected at least one message"
|
48
|
-
|
49
|
-
has_text_content = False
|
50
|
-
for event in events:
|
51
|
-
if (
|
52
|
-
event.content
|
53
|
-
and event.content.parts
|
54
|
-
and any(part.text for part in event.content.parts)
|
55
|
-
):
|
56
|
-
has_text_content = True
|
57
|
-
break
|
58
|
-
assert has_text_content, "Expected at least one message with text content"
|
File without changes
|
{agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/entry_points.txt
RENAMED
File without changes
|
{agent_starter_pack-0.11.0.dist-info → agent_starter_pack-0.11.1.dist-info}/licenses/LICENSE
RENAMED
File without changes
|