google-vertexai[minor]: add function calling on VertexAI (#15822)

Replace this entire comment with:
  - **Description:** Description: added support for tools on VertexAI
  - **Issue:** #15073 
  - **Twitter handle:**  lkuligin

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Leonid Kuligin
2024-01-17 02:01:26 +01:00
committed by GitHub
parent 8840a8cc95
commit 4df14a61fc
9 changed files with 1159 additions and 35 deletions

View File

@@ -253,9 +253,8 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
"ChatGooglePalm",
),
("langchain", "chat_models", "vertexai", "ChatVertexAI"): (
"langchain",
"langchain_google_vertexai",
"chat_models",
"vertexai",
"ChatVertexAI",
),
("langchain", "schema", "output", "ChatGenerationChunk"): (
@@ -337,9 +336,8 @@ SERIALIZABLE_MAPPING: Dict[Tuple[str, ...], Tuple[str, ...]] = {
"Replicate",
),
("langchain", "llms", "vertexai", "VertexAI"): (
"langchain",
"langchain_vertexai",
"llms",
"vertexai",
"VertexAI",
),
("langchain", "output_parsers", "combining", "CombiningOutputParser"): (

View File

@@ -28,7 +28,7 @@ PYTHON_TO_JSON_TYPES = {
class FunctionDescription(TypedDict):
"""Representation of a callable function to the OpenAI API."""
"""Representation of a callable function to send to an LLM."""
name: str
"""The name of the function."""