MaximGeminiAsyncChatSession
__init__
| Name | Description |
|---|---|
chat | The chat. |
logger | The logger. |
trace_id | The trace id. |
is_local_trace | Whether the trace is local. |
send_message
| Name | Description |
|---|---|
message | The message to send. |
generation_name | The name of the generation. |
| Name | Description |
|---|---|
GenerateContentResponse | The response from the chat. |
send_message_stream
| Name | Description |
|---|---|
message | The message to send. |
generation_name | The name of the generation. |
| Name | Description |
|---|---|
Awaitable[AsyncIterator[GenerateContentResponse]] | The response from the chat. |
__getattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
| Name | Description |
|---|---|
Any | The attribute. |
__setattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
value | The value of the attribute. |
end_trace
MaximGeminiAsyncChats
__init__
create
| Name | Description |
|---|---|
model | The model to use. |
config | The config to use. |
history | The history to use. |
trace_id | The trace id. |
| Name | Description |
|---|---|
AsyncChat | The chat session. |
__getattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
| Name | Description |
|---|---|
Any | The attribute. |
__setattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
value | The value of the attribute. |
MaximGeminiAsyncModels
__init__
| Name | Description |
|---|---|
models | The models. |
logger | The logger. |
generate_content_stream
| Name | Description |
|---|---|
model | The model to use. |
contents | The contents to use. |
config | The config to use. |
trace_id | The trace id. |
generation_name | The generation name. |
| Name | Description |
|---|---|
Awaitable[AsyncIterator[GenerateContentResponse]] | The response from the models. |
generate_content
| Name | Description |
|---|---|
model | The model to use. |
contents | The contents to use. |
config | The config to use. |
trace_id | The trace id. |
generation_name | The generation name. |
| Name | Description |
|---|---|
GenerateContentResponse | The response from the models. |
__getattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
| Name | Description |
|---|---|
Any | The attribute. |
__setattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
value | The value of the attribute. |
MaximGeminiAsyncClient
__init__
| Name | Description |
|---|---|
client | The client. |
logger | The logger. |
__getattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
| Name | Description |
|---|---|
Any | The attribute. |
__setattr__
| Name | Description |
|---|---|
name | The name of the attribute. |
value | The value of the attribute. |