google-adk-extras 0.1.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.
@@ -0,0 +1,245 @@
1
+ """YAML file-based session service implementation."""
2
+
3
+ import json
4
+ import time
5
+ import uuid
6
+ import os
7
+ from typing import Any, Optional
8
+ from pathlib import Path
9
+
10
+ try:
11
+ import yaml
12
+ except ImportError:
13
+ raise ImportError(
14
+ "PyYAML is required for YamlFileSessionService. "
15
+ "Install it with: pip install PyYAML"
16
+ )
17
+
18
+ from google.adk.sessions.session import Session
19
+ from google.adk.events.event import Event
20
+ from google.adk.sessions.base_session_service import GetSessionConfig, ListSessionsResponse
21
+
22
+ from .base_custom_session_service import BaseCustomSessionService
23
+
24
+
25
+ class YamlFileSessionService(BaseCustomSessionService):
26
+ """YAML file-based session service implementation."""
27
+
28
+ def __init__(self, base_directory: str = "./sessions"):
29
+ """Initialize the YAML file session service.
30
+
31
+ Args:
32
+ base_directory: Base directory for storing session files
33
+ """
34
+ super().__init__()
35
+ self.base_directory = Path(base_directory)
36
+ # Create base directory if it doesn't exist
37
+ self.base_directory.mkdir(parents=True, exist_ok=True)
38
+
39
+ async def _initialize_impl(self) -> None:
40
+ """Initialize the file system session service."""
41
+ # Ensure base directory exists
42
+ self.base_directory.mkdir(parents=True, exist_ok=True)
43
+
44
+ async def _cleanup_impl(self) -> None:
45
+ """Clean up resources (no cleanup needed for file-based service)."""
46
+ pass
47
+
48
+ def _get_session_file_path(self, app_name: str, user_id: str, session_id: str) -> Path:
49
+ """Generate file path for a session."""
50
+ # Create app directory
51
+ app_dir = self.base_directory / app_name
52
+ app_dir.mkdir(exist_ok=True)
53
+
54
+ # Create user directory
55
+ user_dir = app_dir / user_id
56
+ user_dir.mkdir(exist_ok=True)
57
+
58
+ # Return session file path
59
+ return user_dir / f"{session_id}.yaml"
60
+
61
+ def _get_user_directory(self, app_name: str, user_id: str) -> Path:
62
+ """Get the directory path for a user's sessions."""
63
+ return self.base_directory / app_name / user_id
64
+
65
+ def _serialize_events(self, events: list[Event]) -> list[dict]:
66
+ """Serialize events to dictionaries."""
67
+ return [event.model_dump() for event in events]
68
+
69
+ def _deserialize_events(self, event_dicts: list[dict]) -> list[Event]:
70
+ """Deserialize events from dictionaries."""
71
+ return [Event(**event_dict) for event_dict in event_dicts]
72
+
73
+ def _session_to_dict(self, session: Session) -> dict:
74
+ """Convert session to dictionary for YAML serialization."""
75
+ return {
76
+ "id": session.id,
77
+ "app_name": session.app_name,
78
+ "user_id": session.user_id,
79
+ "state": session.state,
80
+ "events": self._serialize_events(session.events),
81
+ "last_update_time": session.last_update_time
82
+ }
83
+
84
+ def _dict_to_session(self, data: dict) -> Session:
85
+ """Convert dictionary to session object."""
86
+ return Session(
87
+ id=data["id"],
88
+ app_name=data["app_name"],
89
+ user_id=data["user_id"],
90
+ state=data["state"],
91
+ events=self._deserialize_events(data["events"]),
92
+ last_update_time=data["last_update_time"]
93
+ )
94
+
95
+ async def _create_session_impl(
96
+ self,
97
+ *,
98
+ app_name: str,
99
+ user_id: str,
100
+ state: Optional[dict[str, Any]] = None,
101
+ session_id: Optional[str] = None,
102
+ ) -> Session:
103
+ """Implementation of session creation."""
104
+ # Generate session ID if not provided
105
+ session_id = session_id or str(uuid.uuid4())
106
+
107
+ # Create session object
108
+ session = Session(
109
+ id=session_id,
110
+ app_name=app_name,
111
+ user_id=user_id,
112
+ state=state or {},
113
+ events=[],
114
+ last_update_time=time.time()
115
+ )
116
+
117
+ # Save to YAML file
118
+ file_path = self._get_session_file_path(app_name, user_id, session_id)
119
+ session_data = self._session_to_dict(session)
120
+
121
+ try:
122
+ with open(file_path, 'w') as f:
123
+ yaml.dump(session_data, f, default_flow_style=False, allow_unicode=True)
124
+ except Exception as e:
125
+ raise RuntimeError(f"Failed to save session to file: {e}")
126
+
127
+ return session
128
+
129
+ async def _get_session_impl(
130
+ self,
131
+ *,
132
+ app_name: str,
133
+ user_id: str,
134
+ session_id: str,
135
+ config: Optional[GetSessionConfig] = None,
136
+ ) -> Optional[Session]:
137
+ """Implementation of session retrieval."""
138
+ file_path = self._get_session_file_path(app_name, user_id, session_id)
139
+
140
+ # Check if file exists
141
+ if not file_path.exists():
142
+ return None
143
+
144
+ try:
145
+ # Load from YAML file
146
+ with open(file_path, 'r') as f:
147
+ session_data = yaml.safe_load(f)
148
+
149
+ # Create session object
150
+ session = self._dict_to_session(session_data)
151
+
152
+ # Apply config filters if provided
153
+ if config:
154
+ if config.num_recent_events:
155
+ session.events = session.events[-config.num_recent_events:]
156
+ if config.after_timestamp:
157
+ filtered_events = [
158
+ event for event in session.events
159
+ if event.timestamp >= config.after_timestamp
160
+ ]
161
+ session.events = filtered_events
162
+
163
+ return session
164
+ except Exception as e:
165
+ raise RuntimeError(f"Failed to load session from file: {e}")
166
+
167
+ async def _list_sessions_impl(
168
+ self,
169
+ *,
170
+ app_name: str,
171
+ user_id: str
172
+ ) -> ListSessionsResponse:
173
+ """Implementation of session listing."""
174
+ user_dir = self._get_user_directory(app_name, user_id)
175
+
176
+ # Check if user directory exists
177
+ if not user_dir.exists():
178
+ return ListSessionsResponse(sessions=[])
179
+
180
+ sessions = []
181
+ try:
182
+ # Iterate through session files
183
+ for file_path in user_dir.glob("*.yaml"):
184
+ # Load session data
185
+ with open(file_path, 'r') as f:
186
+ session_data = yaml.safe_load(f)
187
+
188
+ # Create session object without events for performance
189
+ session = Session(
190
+ id=session_data["id"],
191
+ app_name=session_data["app_name"],
192
+ user_id=session_data["user_id"],
193
+ state=session_data["state"],
194
+ events=[], # Empty events for listing
195
+ last_update_time=session_data["last_update_time"]
196
+ )
197
+ sessions.append(session)
198
+
199
+ return ListSessionsResponse(sessions=sessions)
200
+ except Exception as e:
201
+ raise RuntimeError(f"Failed to list sessions: {e}")
202
+
203
+ async def _delete_session_impl(
204
+ self,
205
+ *,
206
+ app_name: str,
207
+ user_id: str,
208
+ session_id: str
209
+ ) -> None:
210
+ """Implementation of session deletion."""
211
+ file_path = self._get_session_file_path(app_name, user_id, session_id)
212
+
213
+ # Delete file if it exists
214
+ if file_path.exists():
215
+ try:
216
+ file_path.unlink()
217
+ except Exception as e:
218
+ raise RuntimeError(f"Failed to delete session file: {e}")
219
+
220
+ async def _append_event_impl(self, session: Session, event: Event) -> None:
221
+ """Implementation of event appending."""
222
+ file_path = self._get_session_file_path(session.app_name, session.user_id, session.id)
223
+
224
+ # Check if file exists
225
+ if not file_path.exists():
226
+ raise ValueError(f"Session file {file_path} not found")
227
+
228
+ try:
229
+ # Load existing session data
230
+ with open(file_path, 'r') as f:
231
+ session_data = yaml.safe_load(f)
232
+
233
+ # Update session data
234
+ session_data["events"] = self._serialize_events(session.events)
235
+ session_data["last_update_time"] = session.last_update_time
236
+
237
+ # Apply state changes from event if present
238
+ if event.actions and event.actions.state_delta:
239
+ session_data["state"] = session.state
240
+
241
+ # Save updated session data
242
+ with open(file_path, 'w') as f:
243
+ yaml.dump(session_data, f, default_flow_style=False, allow_unicode=True)
244
+ except Exception as e:
245
+ raise RuntimeError(f"Failed to update session file: {e}")
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: google-adk-extras
3
+ Version: 0.1.1
4
+ Summary: Custom implementations of Google ADK services (Session, Artifact, Memory) with multiple storage backends
5
+ Home-page: https://github.com/DeadMeme5441/google-adk-extras
6
+ Author: Your Name
7
+ Author-email: your.email@example.com
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: google-genai>=1.0.0
12
+ Requires-Dist: sqlalchemy>=2.0.0
13
+ Requires-Dist: pymongo>=4.0.0
14
+ Requires-Dist: redis>=4.0.0
15
+ Requires-Dist: pyyaml>=6.0.0
16
+ Requires-Dist: typing-extensions>=4.0.0
17
+ Requires-Dist: pytest>=8.4.2
18
+ Requires-Dist: pytest-asyncio>=1.1.0
19
+ Requires-Dist: google-adk>=1.13.0
20
+ Requires-Dist: boto3>=1.0.0
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest>=6.0; extra == "dev"
23
+ Requires-Dist: pytest-asyncio>=0.15.0; extra == "dev"
24
+ Requires-Dist: google-genai>=1.0.0; extra == "dev"
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: home-page
28
+ Dynamic: license-file
29
+ Dynamic: requires-python
30
+
31
+ # Google ADK Custom Services
32
+
33
+ [![CI](https://github.com/DeadMeme5441/google-adk-extras/actions/workflows/ci.yml/badge.svg)](https://github.com/DeadMeme5441/google-adk-extras/actions/workflows/ci.yml)
34
+ [![PyPI version](https://badge.fury.io/py/google-adk-extras.svg)](https://badge.fury.io/py/google-adk-extras)
35
+
36
+ Custom implementations of Google ADK services (Session, Artifact, Memory) with multiple storage backends.
37
+
38
+ ## Features
39
+
40
+ This package provides custom implementations for Google ADK services with various storage backends:
41
+
42
+ ### Session Services
43
+ - **SQLSessionService**: Store sessions in SQL databases (SQLite, PostgreSQL, MySQL, etc.)
44
+ - **MongoSessionService**: Store sessions in MongoDB
45
+ - **RedisSessionService**: Store sessions in Redis
46
+ - **YamlFileSessionService**: Store sessions in YAML files
47
+
48
+ ### Artifact Services
49
+ - **SQLArtifactService**: Store artifacts in SQL databases
50
+ - **MongoArtifactService**: Store artifacts in MongoDB
51
+ - **LocalFolderArtifactService**: Store artifacts in local file system
52
+ - **S3ArtifactService**: Store artifacts in AWS S3 or S3-compatible services
53
+
54
+ ### Memory Services
55
+ - **SQLMemoryService**: Store memories in SQL databases
56
+ - **MongoMemoryService**: Store memories in MongoDB
57
+ - **RedisMemoryService**: Store memories in Redis
58
+ - **YamlFileMemoryService**: Store memories in YAML files
59
+
60
+ ## Installation
61
+
62
+ ```bash
63
+ pip install google-adk-extras
64
+ ```
65
+
66
+ ## Usage
67
+
68
+ ### Session Services
69
+
70
+ ```python
71
+ from google_adk_extras.sessions import SQLSessionService
72
+
73
+ # Initialize SQL session service
74
+ session_service = SQLSessionService("sqlite:///sessions.db")
75
+ await session_service.initialize()
76
+
77
+ # Create a session
78
+ session = await session_service.create_session(
79
+ app_name="my_app",
80
+ user_id="user_123",
81
+ state={"theme": "dark"}
82
+ )
83
+ ```
84
+
85
+ ### Artifact Services
86
+
87
+ ```python
88
+ from google_adk_extras.artifacts import LocalFolderArtifactService
89
+ from google.genai import types
90
+
91
+ # Initialize local folder artifact service
92
+ artifact_service = LocalFolderArtifactService("./artifacts")
93
+ await artifact_service.initialize()
94
+
95
+ # Save an artifact
96
+ text_blob = types.Blob(data=b"Hello, world!", mime_type="text/plain")
97
+ text_part = types.Part(inline_data=text_blob)
98
+ version = await artifact_service.save_artifact(
99
+ app_name="my_app",
100
+ user_id="user_123",
101
+ session_id="session_456",
102
+ filename="hello.txt",
103
+ artifact=text_part
104
+ )
105
+ ```
106
+
107
+ ### Memory Services
108
+
109
+ ```python
110
+ from google_adk_extras.memory import RedisMemoryService
111
+ from google.adk.sessions.session import Session
112
+ from google.adk.events.event import Event
113
+
114
+ # Initialize Redis memory service
115
+ memory_service = RedisMemoryService(host="localhost", port=6379)
116
+ await memory_service.initialize()
117
+
118
+ # Add a session to memory
119
+ session = Session(id="session_1", app_name="my_app", user_id="user_123", events=[])
120
+ await memory_service.add_session_to_memory(session)
121
+
122
+ # Search memory
123
+ response = await memory_service.search_memory(
124
+ app_name="my_app",
125
+ user_id="user_123",
126
+ query="important information"
127
+ )
128
+ ```
129
+
130
+ ## Examples
131
+
132
+ See the [examples](examples/) directory for complete working examples of each service.
133
+
134
+ ## Requirements
135
+
136
+ - Python 3.10+
137
+ - Google ADK
138
+ - Storage backend dependencies (installed automatically):
139
+ - SQLAlchemy for SQL services
140
+ - PyMongo for MongoDB services
141
+ - redis-py for Redis services
142
+ - PyYAML for YAML file services
143
+ - boto3 for S3 services
144
+
145
+ ## Development
146
+
147
+ ### Setup
148
+
149
+ ```bash
150
+ # Clone the repository
151
+ git clone https://github.com/DeadMeme5441/google-adk-extras.git
152
+ cd google-adk-extras
153
+
154
+ # Install with uv (recommended)
155
+ uv sync
156
+
157
+ # Or install with pip
158
+ pip install -e .
159
+ ```
160
+
161
+ ### Running Tests
162
+
163
+ ```bash
164
+ # Run all tests
165
+ uv run pytest tests/
166
+
167
+ # Run specific test suite
168
+ uv run pytest tests/unit/
169
+ uv run pytest tests/integration/
170
+ uv run pytest tests/e2e/
171
+ ```
172
+
173
+ ## License
174
+
175
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,25 @@
1
+ google_adk_extras/__init__.py,sha256=HXajqVldJRhLGIQr5yI22yA54_-Fm36M59NI-VuhED4,76
2
+ google_adk_extras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ google_adk_extras/artifacts/__init__.py,sha256=78QXiuHidvhS3vtNUJvPdcdx3UOkOHGbtDoIOFkk13o,522
4
+ google_adk_extras/artifacts/base_custom_artifact_service.py,sha256=QjikAJrRxGxzRyX_vW30OvgIIrRXB-xqwXbEbCg3yJc,5496
5
+ google_adk_extras/artifacts/local_folder_artifact_service.py,sha256=j8MQAYhtDX4MEDrqSxLpP5gqVVxPe7EdGsrFa_WtjQI,8894
6
+ google_adk_extras/artifacts/mongo_artifact_service.py,sha256=z6x7zL4RsPuUYOgv02xkD_c3BNInjTa61ElgsvkZazc,7111
7
+ google_adk_extras/artifacts/s3_artifact_service.py,sha256=JZYyhdYQmnPVlAX6xML5VtK00zJ799lnBe11IG-rgHc,12034
8
+ google_adk_extras/artifacts/sql_artifact_service.py,sha256=6nDWrWYNdGxxVqlyiitspAqLfOfTObPcAPzodJ9nGZs,9015
9
+ google_adk_extras/memory/__init__.py,sha256=ijfxxZjU47CwbnnpORTnY_8RKCjvd1skVQId2iiHZ1M,472
10
+ google_adk_extras/memory/base_custom_memory_service.py,sha256=L0e5O-XzoP10m6ZsQ8ZIJTA6RpxEcF5uC4Rasp0mHAc,2782
11
+ google_adk_extras/memory/mongo_memory_service.py,sha256=M2FGzGaWuEkDILjEpUPx7OOzuek7d1OP9TXzKAeb9jE,6759
12
+ google_adk_extras/memory/redis_memory_service.py,sha256=P6vYvP8gv6kCH1lRB0SQld3mzS_JVKMUDtKifXDfu38,7400
13
+ google_adk_extras/memory/sql_memory_service.py,sha256=31iouO1ehqXXRoQrZWwyU7UkLnZUChBY1ItEyjJ4jCk,8123
14
+ google_adk_extras/memory/yaml_file_memory_service.py,sha256=oZjp2mLbwXGzzwcma9NhbeL4qbpj53uNBmkmXnV_KBA,7106
15
+ google_adk_extras/sessions/__init__.py,sha256=yr4q9Z_14NTMri7P5lF-eJPNpTIXcbih2qGOsB7_iAU,408
16
+ google_adk_extras/sessions/base_custom_session_service.py,sha256=Af5FHmVgVJGWHovizquzSLIfogEwvjOBFXuNr0fLhQs,5305
17
+ google_adk_extras/sessions/mongo_session_service.py,sha256=r3jZ3PmDpbZ0veNzXzuAj_fqRWNZL8RO53ESEHrr7uQ,8329
18
+ google_adk_extras/sessions/redis_session_service.py,sha256=yyfXZozeFWJ2S_kz7zXqz--f_ymE6HMMpT3MhcpFXIE,10434
19
+ google_adk_extras/sessions/sql_session_service.py,sha256=SjcHrdsLLKIMeLkik5Kc6KJ1UE0jWkIhbza-8GJqoUc,11445
20
+ google_adk_extras/sessions/yaml_file_session_service.py,sha256=kgEdg1jlS0Lf0XH2Hgnj4LWiarobIvldauWgQ6sY-hU,8743
21
+ google_adk_extras-0.1.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
22
+ google_adk_extras-0.1.1.dist-info/METADATA,sha256=K6_U7iJD8EcOGwB8dq8WZCh2CzrGjhkESXLoGnGxngY,4841
23
+ google_adk_extras-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
24
+ google_adk_extras-0.1.1.dist-info/top_level.txt,sha256=DDWgVkz8G8ihPzznxAWyKa2jgJW3F6Fwy__qMddoKTs,18
25
+ google_adk_extras-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1 @@
1
+ google_adk_extras