Skip to content

Commit fca9c68

Browse files
committed
add antrhopic vertex support:
1 parent 0d894cf commit fca9c68

File tree

11 files changed

+763
-16
lines changed

11 files changed

+763
-16
lines changed

docs/snippets/schemas/v3/index.schema.mdx

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,81 @@
15021502
"model"
15031503
],
15041504
"additionalProperties": false
1505+
},
1506+
"GoogleVertexAnthropicLanguageModel": {
1507+
"type": "object",
1508+
"properties": {
1509+
"provider": {
1510+
"const": "google-vertex-anthropic",
1511+
"description": "Google Vertex AI Anthropic Configuration"
1512+
},
1513+
"model": {
1514+
"type": "string",
1515+
"description": "The name of the Anthropic language model running on Google Vertex.",
1516+
"examples": [
1517+
"claude-sonnet-4"
1518+
]
1519+
},
1520+
"displayName": {
1521+
"type": "string",
1522+
"description": "Optional display name."
1523+
},
1524+
"project": {
1525+
"type": "string",
1526+
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
1527+
},
1528+
"region": {
1529+
"type": "string",
1530+
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
1531+
"examples": [
1532+
"us-central1",
1533+
"us-east1",
1534+
"europe-west1"
1535+
]
1536+
},
1537+
"credentials": {
1538+
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
1539+
"anyOf": [
1540+
{
1541+
"type": "object",
1542+
"properties": {
1543+
"secret": {
1544+
"type": "string",
1545+
"description": "The name of the secret that contains the token."
1546+
}
1547+
},
1548+
"required": [
1549+
"secret"
1550+
],
1551+
"additionalProperties": false
1552+
},
1553+
{
1554+
"type": "object",
1555+
"properties": {
1556+
"env": {
1557+
"type": "string",
1558+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
1559+
}
1560+
},
1561+
"required": [
1562+
"env"
1563+
],
1564+
"additionalProperties": false
1565+
}
1566+
]
1567+
},
1568+
"baseUrl": {
1569+
"type": "string",
1570+
"format": "url",
1571+
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
1572+
"description": "Optional base URL."
1573+
}
1574+
},
1575+
"required": [
1576+
"provider",
1577+
"model"
1578+
],
1579+
"additionalProperties": false
15051580
}
15061581
},
15071582
"oneOf": [
@@ -1863,6 +1938,81 @@
18631938
"model"
18641939
],
18651940
"additionalProperties": false
1941+
},
1942+
{
1943+
"type": "object",
1944+
"properties": {
1945+
"provider": {
1946+
"const": "google-vertex-anthropic",
1947+
"description": "Google Vertex AI Anthropic Configuration"
1948+
},
1949+
"model": {
1950+
"type": "string",
1951+
"description": "The name of the Anthropic language model running on Google Vertex.",
1952+
"examples": [
1953+
"claude-sonnet-4"
1954+
]
1955+
},
1956+
"displayName": {
1957+
"type": "string",
1958+
"description": "Optional display name."
1959+
},
1960+
"project": {
1961+
"type": "string",
1962+
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
1963+
},
1964+
"region": {
1965+
"type": "string",
1966+
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
1967+
"examples": [
1968+
"us-central1",
1969+
"us-east1",
1970+
"europe-west1"
1971+
]
1972+
},
1973+
"credentials": {
1974+
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
1975+
"anyOf": [
1976+
{
1977+
"type": "object",
1978+
"properties": {
1979+
"secret": {
1980+
"type": "string",
1981+
"description": "The name of the secret that contains the token."
1982+
}
1983+
},
1984+
"required": [
1985+
"secret"
1986+
],
1987+
"additionalProperties": false
1988+
},
1989+
{
1990+
"type": "object",
1991+
"properties": {
1992+
"env": {
1993+
"type": "string",
1994+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
1995+
}
1996+
},
1997+
"required": [
1998+
"env"
1999+
],
2000+
"additionalProperties": false
2001+
}
2002+
]
2003+
},
2004+
"baseUrl": {
2005+
"type": "string",
2006+
"format": "url",
2007+
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
2008+
"description": "Optional base URL."
2009+
}
2010+
},
2011+
"required": [
2012+
"provider",
2013+
"model"
2014+
],
2015+
"additionalProperties": false
18662016
}
18672017
]
18682018
}

docs/snippets/schemas/v3/languageModel.schema.mdx

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,81 @@
362362
"model"
363363
],
364364
"additionalProperties": false
365+
},
366+
"GoogleVertexAnthropicLanguageModel": {
367+
"type": "object",
368+
"properties": {
369+
"provider": {
370+
"const": "google-vertex-anthropic",
371+
"description": "Google Vertex AI Anthropic Configuration"
372+
},
373+
"model": {
374+
"type": "string",
375+
"description": "The name of the Anthropic language model running on Google Vertex.",
376+
"examples": [
377+
"claude-sonnet-4"
378+
]
379+
},
380+
"displayName": {
381+
"type": "string",
382+
"description": "Optional display name."
383+
},
384+
"project": {
385+
"type": "string",
386+
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
387+
},
388+
"region": {
389+
"type": "string",
390+
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
391+
"examples": [
392+
"us-central1",
393+
"us-east1",
394+
"europe-west1"
395+
]
396+
},
397+
"credentials": {
398+
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
399+
"anyOf": [
400+
{
401+
"type": "object",
402+
"properties": {
403+
"secret": {
404+
"type": "string",
405+
"description": "The name of the secret that contains the token."
406+
}
407+
},
408+
"required": [
409+
"secret"
410+
],
411+
"additionalProperties": false
412+
},
413+
{
414+
"type": "object",
415+
"properties": {
416+
"env": {
417+
"type": "string",
418+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
419+
}
420+
},
421+
"required": [
422+
"env"
423+
],
424+
"additionalProperties": false
425+
}
426+
]
427+
},
428+
"baseUrl": {
429+
"type": "string",
430+
"format": "url",
431+
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
432+
"description": "Optional base URL."
433+
}
434+
},
435+
"required": [
436+
"provider",
437+
"model"
438+
],
439+
"additionalProperties": false
365440
}
366441
},
367442
"oneOf": [
@@ -723,6 +798,81 @@
723798
"model"
724799
],
725800
"additionalProperties": false
801+
},
802+
{
803+
"type": "object",
804+
"properties": {
805+
"provider": {
806+
"const": "google-vertex-anthropic",
807+
"description": "Google Vertex AI Anthropic Configuration"
808+
},
809+
"model": {
810+
"type": "string",
811+
"description": "The name of the Anthropic language model running on Google Vertex.",
812+
"examples": [
813+
"claude-sonnet-4"
814+
]
815+
},
816+
"displayName": {
817+
"type": "string",
818+
"description": "Optional display name."
819+
},
820+
"project": {
821+
"type": "string",
822+
"description": "The Google Cloud project ID. Defaults to the `GOOGLE_VERTEX_PROJECT` environment variable."
823+
},
824+
"region": {
825+
"type": "string",
826+
"description": "The Google Cloud region. Defaults to the `GOOGLE_VERTEX_REGION` environment variable.",
827+
"examples": [
828+
"us-central1",
829+
"us-east1",
830+
"europe-west1"
831+
]
832+
},
833+
"credentials": {
834+
"description": "Optional file path to service account credentials JSON. Defaults to the `GOOGLE_APPLICATION_CREDENTIALS` environment variable or application default credentials.",
835+
"anyOf": [
836+
{
837+
"type": "object",
838+
"properties": {
839+
"secret": {
840+
"type": "string",
841+
"description": "The name of the secret that contains the token."
842+
}
843+
},
844+
"required": [
845+
"secret"
846+
],
847+
"additionalProperties": false
848+
},
849+
{
850+
"type": "object",
851+
"properties": {
852+
"env": {
853+
"type": "string",
854+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
855+
}
856+
},
857+
"required": [
858+
"env"
859+
],
860+
"additionalProperties": false
861+
}
862+
]
863+
},
864+
"baseUrl": {
865+
"type": "string",
866+
"format": "url",
867+
"pattern": "^https?:\\/\\/[^\\s/$.?#].[^\\s]*$",
868+
"description": "Optional base URL."
869+
}
870+
},
871+
"required": [
872+
"provider",
873+
"model"
874+
],
875+
"additionalProperties": false
726876
}
727877
]
728878
}

0 commit comments

Comments
 (0)