本文中の「ADK エージェントの定義」にある下記の部分のコードを修正します。
また、このエージェントを実行するための AdkApp オブジェクトを次のように定義します。
def artifact_builder():
return GcsArtifactService(bucket_name=BUCKET_NAME)
adk_app = AdkApp(
agent=root_agent,本文中の「ADK エージェントの定義」にある下記の部分のコードを修正します。
また、このエージェントを実行するための AdkApp オブジェクトを次のように定義します。
def artifact_builder():
return GcsArtifactService(bucket_name=BUCKET_NAME)
adk_app = AdkApp(
agent=root_agent,| cd <Workspace dir> | |
| # 1. 外部リソースを保存するディレクトリを作成 | |
| mkdir -p .agent/skills/google-adk/resources | |
| # 2. リソースを内部にクローン(またはサブモジュールとして追加) | |
| # 外部に置く必要がある場合は、シンボリックリンクを貼る方法もあります | |
| git clone https://github.com/google/adk-python.git .agent/skills/google-adk/resources/adk-python | |
| git clone https://github.com/google/adk-docs.git .agent/skills/google-adk/resources/adk-docs |
| --- fast_api.py.orig 2025-06-23 20:29:43.919757312 +0000 | |
| +++ fast_api.py 2025-06-23 20:30:19.763378438 +0000 | |
| @@ -960,4 +960,61 @@ | |
| StaticFiles(directory=ANGULAR_DIST_PATH, html=True), | |
| name="static", | |
| ) | |
| + | |
| + async def _get_runner_async(app_name: str): | |
| + """Returns the runner for the given app.""" | |
| + import vertexai, json |
| { | |
| "components": { | |
| "comp-compose-params-for-model-tuner": { | |
| "executorLabel": "exec-compose-params-for-model-tuner", | |
| "inputDefinitions": { | |
| "parameters": { | |
| "adapter_length": { | |
| "defaultValue": 0, | |
| "description": "Adapter length.", | |
| "isOptional": true, |