Llm
NormalizedChatGoogleGenerativeAI
Bases: ChatGoogleGenerativeAI
flowchart TD
src.tradingagents.llm.NormalizedChatGoogleGenerativeAI[NormalizedChatGoogleGenerativeAI]
click src.tradingagents.llm.NormalizedChatGoogleGenerativeAI href "" "src.tradingagents.llm.NormalizedChatGoogleGenerativeAI"
Flatten Gemini 3 list-content responses to a plain string.
Gemini 3 returns message.content as [{'type': 'text', 'text': '...'}];
downstream prompt concatenation expects plain strings.
Methods:
| Name | Description |
|---|---|
invoke |
Invoke the chat model and normalize the response content. |
invoke
Invoke the chat model and normalize the response content.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
object
|
The input prompt for the chat model. |
required |
|
object | None
|
Configuration for the invocation. Defaults to None. |
None
|
|
object
|
Additional keyword arguments. |
{}
|
Returns:
| Name | Type | Description |
|---|---|---|
object |
object
|
The chat response object with normalized string content. |