Skip to content

Commit 6277dae

Browse files
xuanyang15copybara-github
authored andcommitted
chore: add a disclaimer for the response from the answering agent
PiperOrigin-RevId: 791915465
1 parent ef83701 commit 6277dae

File tree

1 file changed

+6
-3
lines changed
  • contributing/samples/adk_answering_agent

1 file changed

+6
-3
lines changed

contributing/samples/adk_answering_agent/agent.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ def add_comment_to_discussion(
137137
}
138138
}
139139
"""
140+
comment_body = (
141+
"**Response from ADK Answering Agent (experimental, answer may be"
142+
" inaccurate)**\n\n"
143+
+ comment_body
144+
)
145+
140146
variables = {"discussionId": discussion_id, "body": comment_body}
141147
try:
142148
response = run_graphql_query(query, variables)
@@ -249,9 +255,6 @@ def add_label_to_discussion(
249255
information that is not in the document store. Do not invent citations which are not in the document store.
250256
* **Be Objective**: your answer should be based on the facts you found in the document store, do not be misled by user's assumptions or user's understanding of ADK.
251257
* If you can't find the answer or information in the document store, **do not** respond.
252-
* Include a bolded note (e.g. "Response from ADK Answering Agent") in your comment
253-
to indicate this comment was added by an ADK Answering Agent.
254-
* Have an empty line between the note and the rest of your response.
255258
* Inlclude a short summary of your response in the comment as a TLDR, e.g. "**TLDR**: <your summary>".
256259
* Have a divider line between the TLDR and your detail response.
257260
* Do not respond to any other discussion except the one specified by the user.

0 commit comments

Comments
 (0)