Skip to content

Commit 3346bdd

Browse files
committed
Rename getUsage() to getTokenUsage().
1 parent fe53935 commit 3346bdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ARCHITECTURE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,14 @@ direction LR
485485
}
486486
class Result {
487487
+getId() string
488-
+getUsage() TokenUsage
488+
+getTokenUsage() TokenUsage
489489
+getProviderMetadata() array< string, mixed >
490490
+getJsonSchema() array< string, mixed >$
491491
}
492492
class GenerativeAiResult {
493493
+getId() string
494494
+getCandidates() Candidate[]
495-
+getUsage() TokenUsage
495+
+getTokenUsage() TokenUsage
496496
+getProviderMetadata() array< string, mixed >
497497
+getJsonSchema() array< string, mixed >$
498498
%% The following utility methods transform the result candidates into a specific shape.
@@ -510,7 +510,7 @@ direction LR
510510
class EmbeddingResult {
511511
+getId() string
512512
+getEmbeddings() Embedding[]
513-
+getUsage() TokenUsage
513+
+getTokenUsage() TokenUsage
514514
+getProviderMetadata() array< string, mixed >
515515
+getJsonSchema() array< string, mixed >$
516516
}

0 commit comments

Comments
 (0)