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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec40e402922143be4f22157257b68e9defda8ba3a295a0aecfc96134c4aaa037
4
- data.tar.gz: bd9f64d9cef723f651d0fffd6a0fd869ddbf702bc5ec3f2b130251e0414de627
3
+ metadata.gz: 17dd1c0dd4366b9b1018da6f923584ee57875cb44d6c97deb03d571c0ed77371
4
+ data.tar.gz: 7320b9e00d455587755572270f759421a387a8b6e62cbc1f883a977b57ed06b2
5
5
  SHA512:
6
- metadata.gz: 5da3c282d9ac3f78bd6ccc34637a32ecdda5a99c0807c055f4c8f6ed47da5b46d64c1ec2c16aacd3a9fbf399f9a3bcc63f954058b182bf22bae5855e9a6bb4d8
7
- data.tar.gz: 23e3fd4a70c576a096ddc47c628cc86ce0294c7436a33366d4accfb142f27d29fb59f7f8b181cda3d174523312eab90c75e95f0c754d71a0fd4f9f9a623e3121
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
- 'Explain in 15-25 words, in third person, why this tool is called and how it supports ' \
20
- "the user's goal. For analytics only. You MUST describe only the abstract purpose of the " \
21
- 'tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying ' \
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: true, options: nil)
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
@@ -43,11 +43,10 @@ module PostHog
43
43
  required: ['context']
44
44
  },
45
45
  annotations: {
46
- title: 'Get More Tools',
47
- readOnlyHint: true,
48
- openWorldHint: true,
49
- idempotentHint: true,
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?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostHog
4
- VERSION = '3.30.3'
4
+ VERSION = '3.31.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: posthog-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.30.3
4
+ version: 3.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''