goose-py 0.3.7__py3-none-any.whl → 0.3.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
goose/agent.py
CHANGED
@@ -150,12 +150,20 @@ class AgentResponse[R: BaseModel](BaseModel):
|
|
150
150
|
@computed_field
|
151
151
|
@property
|
152
152
|
def input_cost(self) -> float:
|
153
|
-
return
|
153
|
+
return (
|
154
|
+
self.INPUT_CENTS_PER_MILLION_TOKENS[self.model]
|
155
|
+
* self.input_tokens
|
156
|
+
/ 1_000_000
|
157
|
+
)
|
154
158
|
|
155
159
|
@computed_field
|
156
160
|
@property
|
157
161
|
def output_cost(self) -> float:
|
158
|
-
return
|
162
|
+
return (
|
163
|
+
self.OUTPUT_CENTS_PER_MILLION_TOKENS[self.model]
|
164
|
+
* self.output_tokens
|
165
|
+
/ 1_000_000
|
166
|
+
)
|
159
167
|
|
160
168
|
@computed_field
|
161
169
|
@property
|
@@ -1,9 +1,9 @@
|
|
1
1
|
goose/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
goose/agent.py,sha256=
|
2
|
+
goose/agent.py,sha256=AyAQqgvG-SgYD4O8-yRHfJ3oJpk7zRMdSVkqVdGii4A,7770
|
3
3
|
goose/errors.py,sha256=-0OyZQJWYTRw5YgnCB2_uorVaUsL6Z0QYQO2FqzCiyg,32
|
4
4
|
goose/flow.py,sha256=08RlviG3VeU1hNRXtAWUrBwKmsd6TB-7ECC_ykPF3O0,11710
|
5
5
|
goose/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
goose/store.py,sha256=6IIGkIYt6CWiNENi2gaS9C0Z-62ia-Qdz29HhCg8njw,698
|
7
|
-
goose_py-0.3.
|
8
|
-
goose_py-0.3.
|
9
|
-
goose_py-0.3.
|
7
|
+
goose_py-0.3.8.dist-info/METADATA,sha256=rRzWY9BepvDUV96gYPY52nSdd_pulwLMa3pVFq7qGDA,1106
|
8
|
+
goose_py-0.3.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
9
|
+
goose_py-0.3.8.dist-info/RECORD,,
|
File without changes
|