foobara-anthropic-api 1.0.6 → 1.0.8
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bc00c9fcd2f643b5749fd901144969a4798dae15e7bcadf2683d41fe9210dabb
|
|
4
|
+
data.tar.gz: f0b04ea2f80ccfa89e4ad80a83380aaf68f28cb9435cc5beb9ca4a0d5b0f80da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f60b5578bce421d195ede689011bc7a0b307d46fc266af82804e32d6b0e97faad4f0cb6f97d6f7cafaaca67c38652fadadc1924a45b14837eaa2aa6d337b5755
|
|
7
|
+
data.tar.gz: 3b8be65f2488c3fa9dff460b8279c06c7f157756d9560c76502b105fc7fd08248fe2afc21e21d5956e3d7c28f7db0a20964b5042e2e78857c684736702808677
|
|
@@ -4,9 +4,18 @@ module Foobara
|
|
|
4
4
|
module Types
|
|
5
5
|
class MessageResult < Foobara::Model
|
|
6
6
|
class Content < Foobara::Model
|
|
7
|
+
# TODO: we either need to support inheritance better (maybe it already works?) or better validations.
|
|
8
|
+
# The issue is that we will have "text" if it's actually text but could also be "thinking"
|
|
7
9
|
attributes do
|
|
8
|
-
|
|
9
|
-
type :string, :required, one_of: ["text"]
|
|
10
|
+
# TODO: scared to explicitly put one_of: because Anthropic might just drop in new values.
|
|
11
|
+
type :string, :required # , one_of: ["text", "thinking"]
|
|
12
|
+
|
|
13
|
+
# Only present when type is "text"
|
|
14
|
+
text :string
|
|
15
|
+
|
|
16
|
+
# Only present when type is "thinking"
|
|
17
|
+
thinking :string
|
|
18
|
+
signature :string
|
|
10
19
|
end
|
|
11
20
|
end
|
|
12
21
|
end
|