File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3- ## 0.1.2
3+ ## 0.2.0
44
55### ⚠ BREAKING CHANGES
66
Original file line number Diff line number Diff line change 2323if TYPE_CHECKING :
2424 from google .genai import types
2525
26- from ..events .event import Event
2726 from ..events .event_actions import EventActions
2827 from ..sessions .state import State
2928 from .invocation_context import InvocationContext
Original file line number Diff line number Diff line change 1414
1515from __future__ import annotations
1616
17- from typing import Optional
17+ from typing import Any , Optional
1818
1919from google .genai import types
2020from pydantic import BaseModel
@@ -37,6 +37,7 @@ class LlmResponse(BaseModel):
3737 error_message: Error message if the response is an error.
3838 interrupted: Flag indicating that LLM was interrupted when generating the
3939 content. Usually it's due to user interruption during a bidi streaming.
40+ custom_metadata: The custom metadata of the LlmResponse.
4041 """
4142
4243 model_config = ConfigDict (extra = 'forbid' )
@@ -71,6 +72,14 @@ class LlmResponse(BaseModel):
7172 Usually it's due to user interruption during a bidi streaming.
7273 """
7374
75+ custom_metadata : Optional [dict [str , Any ]] = None
76+ """The custom metadata of the LlmResponse.
77+
78+ An optional key-value pair to label an LlmResponse.
79+
80+ NOTE: the entire dict must be JSON serializable.
81+ """
82+
7483 @staticmethod
7584 def create (
7685 generate_content_response : types .GenerateContentResponse ,
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515# version: date+base_cl
16- __version__ = "0.1.2 "
16+ __version__ = "0.2.0 "
You can’t perform that action at this time.
0 commit comments