You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add JSON Schema Support
* Add unit tests
* Add changeset
* update changeset
* Add some unit test cases (#159)
---------
Co-authored-by: Christina Holland <chholland@google.com>
Copy file name to clipboardexpand all lines: docs/reference/main/generative-ai.functiondeclarationschemaproperty.md
+3-16
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,12 @@
4
4
5
5
## FunctionDeclarationSchemaProperty interface
6
6
7
-
Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
Output response schema of the generated candidate text. Note: This only applies when the specified `responseMIMEType` supports a schema; currently this is limited to `application/json`<!---->.
Copy file name to clipboardexpand all lines: docs/reference/main/generative-ai.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@
53
53
|[FunctionCallPart](./generative-ai.functioncallpart.md)| Content part interface if the part represents FunctionResponse. |
54
54
|[FunctionDeclaration](./generative-ai.functiondeclaration.md)| Structured representation of a function declaration as defined by the \[OpenAPI 3.0 specification\](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a Tool by the model and executed by the client. |
55
55
|[FunctionDeclarationSchema](./generative-ai.functiondeclarationschema.md)| Schema for parameters passed to [FunctionDeclaration.parameters](./generative-ai.functiondeclaration.parameters.md)<!---->. |
56
-
|[FunctionDeclarationSchemaProperty](./generative-ai.functiondeclarationschemaproperty.md)| Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.|
56
+
|[FunctionDeclarationSchemaProperty](./generative-ai.functiondeclarationschemaproperty.md)| Schema for top-level function declaration|
57
57
|[FunctionDeclarationsTool](./generative-ai.functiondeclarationstool.md)| A FunctionDeclarationsTool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. |
58
58
|[FunctionResponse](./generative-ai.functionresponse.md)| The result output from a \[FunctionCall\] that contains a string representing the \[FunctionDeclaration.name\] and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a \[FunctionCall\] made based on model prediction. |
59
59
|[FunctionResponsePart](./generative-ai.functionresponsepart.md)| Content part interface if the part represents FunctionResponse. |
@@ -68,8 +68,10 @@
68
68
|[ModelParams](./generative-ai.modelparams.md)| Params passed to [GoogleGenerativeAI.getGenerativeModel()](./generative-ai.googlegenerativeai.getgenerativemodel.md)<!---->. |
69
69
|[PromptFeedback](./generative-ai.promptfeedback.md)| If the prompt was blocked, this will be populated with <code>blockReason</code> and the relevant <code>safetyRatings</code>. |
70
70
|[RequestOptions](./generative-ai.requestoptions.md)| Params passed to getGenerativeModel() or GoogleAIFileManager(). |
71
+
|[ResponseSchema](./generative-ai.responseschema.md)| Schema passed to [GenerationConfig.responseSchema](./generative-ai.generationconfig.responseschema.md)|
71
72
|[SafetyRating](./generative-ai.safetyrating.md)| A safety rating associated with a [GenerateContentCandidate](./generative-ai.generatecontentcandidate.md)|
72
73
|[SafetySetting](./generative-ai.safetysetting.md)| Safety setting that can be sent as part of request parameters. |
74
+
|[Schema](./generative-ai.schema.md)| Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed. |
73
75
|[StartChatParams](./generative-ai.startchatparams.md)| Params for [GenerativeModel.startChat()](./generative-ai.generativemodel.startchat.md)<!---->. |
74
76
|[TextPart](./generative-ai.textpart.md)| Content part interface if the part represents a text string. |
75
77
|[ToolConfig](./generative-ai.toolconfig.md)| Tool config. This config is shared for all tools provided in the request. |
Schema is used to define the format of input/output data. Represents a select subset of an OpenAPI 3.0 schema object. More fields may be added in the future as needed.
0 commit comments