google / google/adk-java

Custom Metadata Support In `RunConfig`

オープン
#870 コメント 4 件 リアクション 0 件 担当者 1 名 @hemasekhar-p が担当を希望しています GitHub で見る
needs review
主要言語
Java
スター
1.7k
フォーク
420
平均マージ
4日 12時間
マージ済み PR(30日)
31

説明

Please, tell me will customMetadata support in `RunConfig` be added in Google Java ADK like in Python? [Python ADK reference](https://github.com/google/adk-python/blob/main/src/google/adk/agents/run_config.py)

Case: we have additional information injection (context info) before the start of runner, but providing it in the content is a wrong approach, cause ADK framework with LLM under the hood parse request and final JSON contain only a message provided by user. It doesn't includes .

An example of injected content in prompt (the content will be run from `Runner`):
```json
{
"user_request" : "Return a JSON you've been prompted.",
"information_about_user" : {
"name" : "Valerii",
"surname" : "Fedorovych"
},
"current_time" : "2026-02-17T10:37:53.706185753+02:00"
}
```

Actual JSON processing by LLM:
```json
{
"request": {
"agent": "main_coordinator",
"user_id": "user_777_investor",
"session_id": "session_finance_tracker_001",
"message": "Return a JSON you've been prompted.",
"context": {
"previous_messages": [
],
"user_profile": {
"name": null,
"goals": [
"real_estate_investment"
]
}
},
"timestamp": "2024-05-22T14:25:00Z"
}
}
```

Looks like a `custom_metadata` used in `run_config` in Python ADK can resolve the issue.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。