This is the async version of genai.GenerateContentResponse
.
google.generativeai.types.AsyncGenerateContentResponse(
done: bool,
iterator: (None | Iterable[glm.GenerateContentResponse] | AsyncIterable[glm.
GenerateContentResponse]),
result: glm.GenerateContentResponse,
chunks: Iterable[glm.GenerateContentResponse]
)
Attributes |
candidates
|
The list of candidate responses.
|
parts
|
A quick accessor equivalent to self.candidates[0].parts
|
prompt_feedback
|
|
text
|
A quick accessor equivalent to self.candidates[0].parts[0].text
|
Methods
from_aiterator
View source
from_aiterator(
iterator
)
from_response
View source
@classmethod
from_response(
response: glm.GenerateContentResponse
)
resolve
View source
resolve()