File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
genai/langchain_google_genai Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -496,22 +496,18 @@ class GoogleGeocodingTool(BaseTool):
496496 include_bounds=True,
497497 include_navigation=True,
498498 include_metadata=True,
499- language="en"
499+ language="en",
500500 )
501501
502502 Invoke directly:
503503 .. code-block:: python
504504
505- result = tool.invoke({
506- "query": "Eiffel Tower, Empire State Building"
507- })
505+ result = tool.invoke({"query": "Eiffel Tower, Empire State Building"})
508506
509507 Invoke with agent:
510508 .. code-block:: python
511509
512- agent.invoke({
513- "input": "Find coordinates of Times Square and Central Park"
514- })
510+ agent.invoke({"input": "Find coordinates of Times Square and Central Park"})
515511
516512 Returns:
517513 Tuple containing:
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class GooglePlacesAPIWrapper(BaseModel):
3131
3232
3333 from langchain_community.utilities import GooglePlacesAPIWrapper
34+
3435 gplaceapi = GooglePlacesAPIWrapper()
3536 """
3637
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ dev = [
8989[tool .ruff ]
9090fix = true
9191
92+ [tool .ruff .format ]
93+ docstring-code-format = true
94+
9295[tool .ruff .lint ]
9396select = [
9497 " E" , # pycodestyle
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ class _BaseGoogleGenerativeAI(BaseModel):
5252
5353 max_output_tokens : Optional [int ] = Field (default = None , alias = "max_tokens" )
5454 """Maximum number of tokens to include in a candidate. Must be greater than zero.
55- If unset, will default to ``64``."""
55+ If unset, will use the model's default value, which varies by model.
56+ See https://ai.google.dev/gemini-api/docs/models for model-specific limits."""
5657
5758 n : int = 1
5859 """Number of chat completions to generate for each prompt. Note that the API may
You can’t perform that action at this time.
0 commit comments