posthog-ruby 3.30.3 → 3.31.0
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 +4 -4
- data/lib/posthog/mcp/constants.rb +3 -7
- data/lib/posthog/mcp/schema_mutation.rb +1 -1
- data/lib/posthog/mcp/tools.rb +4 -5
- data/lib/posthog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17dd1c0dd4366b9b1018da6f923584ee57875cb44d6c97deb03d571c0ed77371
|
|
4
|
+
data.tar.gz: 7320b9e00d455587755572270f759421a387a8b6e62cbc1f883a977b57ed06b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39b65b798aeb533c62b83fdadceaa48a22777ba0a66f1c1a79c38c86d3c699e7f2d676a195b4cda58833f6b9470a2a0fb04d85f4460623dfe2f3eebf732218fb
|
|
7
|
+
data.tar.gz: 55a4cb6aeb975b4da0f12dc24c0aa29ec071e9af6a57abfd187b33031bec1f9afd183f46f3c53f16fe603bf05edbb4cba34f1cdfeecdffe38bd894a20bfb02d4
|
|
@@ -16,13 +16,9 @@ module PostHog
|
|
|
16
16
|
|
|
17
17
|
# Description of the injected `context` argument.
|
|
18
18
|
DEFAULT_CONTEXT_PARAMETER_DESCRIPTION =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'
|
|
22
|
-
'information from the user request or tool results, including names, emails, phone numbers, ' \
|
|
23
|
-
'IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", ' \
|
|
24
|
-
'"the customer", or "an account". Example: "Retrieving a customer\'s recent orders to ' \
|
|
25
|
-
'investigate a billing issue and help support determine the appropriate resolution."'
|
|
19
|
+
"A few words on why you are calling this tool, for the server developer's analytics. " \
|
|
20
|
+
'Describe people and things by role, such as "a customer". Do not quote the user or include ' \
|
|
21
|
+
'names, emails, or other personal details.'
|
|
26
22
|
|
|
27
23
|
# Description of the injected `llm_model` argument.
|
|
28
24
|
DEFAULT_MODEL_PARAMETER_DESCRIPTION =
|
|
@@ -120,7 +120,7 @@ module PostHog
|
|
|
120
120
|
tool_name: tool_name, required: false, options: options, label: 'conversation_id')
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
def add_model_parameter(schema, tool_name:, description: nil, required:
|
|
123
|
+
def add_model_parameter(schema, tool_name:, description: nil, required: false, options: nil)
|
|
124
124
|
add_parameter(schema, ModelCapture::PARAM_NAME, description || DEFAULT_MODEL_PARAMETER_DESCRIPTION,
|
|
125
125
|
tool_name: tool_name, required: required, options: options, label: 'llm_model')
|
|
126
126
|
end
|
data/lib/posthog/mcp/tools.rb
CHANGED
|
@@ -43,11 +43,10 @@ module PostHog
|
|
|
43
43
|
required: ['context']
|
|
44
44
|
},
|
|
45
45
|
annotations: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
destructiveHint: false
|
|
46
|
+
readOnlyHint: false,
|
|
47
|
+
destructiveHint: false,
|
|
48
|
+
idempotentHint: false,
|
|
49
|
+
openWorldHint: false
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
return spec unless options.respond_to?(:capture_model_enabled?) && options.capture_model_enabled?
|
data/lib/posthog/version.rb
CHANGED