File tree Expand file tree Collapse file tree 4 files changed +53
-0
lines changed
packages/vertexai/src/types Expand file tree Collapse file tree 4 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @firebase/vertexai ' : minor
3+ ---
4+
5+ Add ` systemInstruction ` , ` tools ` , and ` generationConfig ` to ` CountTokensRequest ` .
Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ export interface Content {
8888export interface CountTokensRequest {
8989 // (undocumented)
9090 contents: Content [];
91+ generationConfig? : GenerationConfig ;
92+ systemInstruction? : string | Part | Content ;
93+ tools? : Tool [];
9194}
9295
9396// @public
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ export interface CountTokensRequest
2323| Property | Type | Description |
2424| --- | --- | --- |
2525| [contents ](./vertexai .counttokensrequest .md #counttokensrequestcontents ) | [Content ](./vertexai .content .md #content_interface )<!-- -->\[\] | |
26+ | [generationConfig ](./vertexai .counttokensrequest .md #counttokensrequestgenerationconfig ) | [GenerationConfig ](./vertexai .generationconfig .md #generationconfig_interface ) | Configuration options that control how the model generates a response . |
27+ | [systemInstruction ](./vertexai .counttokensrequest .md #counttokensrequestsysteminstruction ) | string \| [Part ](./vertexai .md #part ) \| [Content ](./vertexai .content .md #content_interface ) | Instructions that direct the model to behave a certain way . |
28+ | [tools ](./vertexai .counttokensrequest .md #counttokensrequesttools ) | [Tool ](./vertexai .md #tool )<!-- -->\[\] | <code >[Tool ](./vertexai .md #tool )</code > configuration . |
2629
2730## CountTokensRequest .contents
2831
@@ -31,3 +34,33 @@ export interface CountTokensRequest
3134```typescript
3235contents : Content [];
3336```
37+
38+ ## CountTokensRequest .generationConfig
39+
40+ Configuration options that control how the model generates a response .
41+
42+ <b >Signature :</b >
43+
44+ ```typescript
45+ generationConfig ?: GenerationConfig ;
46+ ```
47+
48+ ## CountTokensRequest .systemInstruction
49+
50+ Instructions that direct the model to behave a certain way .
51+
52+ <b >Signature :</b >
53+
54+ ```typescript
55+ systemInstruction ?: string | Part | Content ;
56+ ```
57+
58+ ## CountTokensRequest .tools
59+
60+ <code >[Tool ](./vertexai .md #tool )</code > configuration .
61+
62+ <b >Signature :</b >
63+
64+ ```typescript
65+ tools ?: Tool [];
66+ ```
Original file line number Diff line number Diff line change @@ -114,6 +114,18 @@ export interface StartChatParams extends BaseParams {
114114 */
115115export interface CountTokensRequest {
116116 contents : Content [ ] ;
117+ /**
118+ * Instructions that direct the model to behave a certain way.
119+ */
120+ systemInstruction ?: string | Part | Content ;
121+ /**
122+ * <code>{@link Tool}</code> configuration.
123+ */
124+ tools ?: Tool [ ] ;
125+ /**
126+ * Configuration options that control how the model generates a response.
127+ */
128+ generationConfig ?: GenerationConfig ;
117129}
118130
119131/**
You can’t perform that action at this time.
0 commit comments