VertexAIConfig(model, temperature=None, top_p=None, top_k=None, max_output_tokens=None, stop_sequences=None, streaming=False, presence_penalty=None, frequency_penalty=None, seed=None, cached_content=None, thinking_config=None, thinking_level=None, thinking_budget=None, credentials=None, project=None, location=None)
Bases: GeminiBaseConfig, ModelConfig
credentials class-attribute instance-attribute
project class-attribute instance-attribute
location class-attribute instance-attribute
temperature class-attribute instance-attribute
top_p class-attribute instance-attribute
top_k class-attribute instance-attribute
max_output_tokens class-attribute instance-attribute
stop_sequences class-attribute instance-attribute
streaming class-attribute instance-attribute
presence_penalty class-attribute instance-attribute
frequency_penalty class-attribute instance-attribute
seed class-attribute instance-attribute
cached_content class-attribute instance-attribute
thinking_config class-attribute instance-attribute
thinking_level class-attribute instance-attribute
thinking_budget class-attribute instance-attribute
copy
Source code in autogen/beta/config/gemini/config.py
| def copy(self, /, **overrides: Unpack[VertexAIConfigOverrides]) -> "VertexAIConfig":
return replace(self, **overrides)
|
create
Source code in autogen/beta/config/gemini/config.py
| def create(self) -> GeminiClient:
return GeminiClient(
model=self.model,
vertexai=True,
credentials=self.credentials,
project=self.project,
location=self.location,
streaming=self.streaming,
create_config=self._build_create_config(),
cached_content=self.cached_content,
)
|
create_files_client
Source code in autogen/beta/config/config.py
| def create_files_client(self) -> "FilesClient":
raise NotImplementedError(f"{type(self).__name__} does not support Files API.")
|