You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor tools and integrate Datadog configuration
- Refactor utility functions in the helper module to improve code clarity and remove deprecated components.
- Introduce a new TypeScript utility for creating and managing tool schema definitions, enhancing type safety.
- Streamline integration with Datadog by setting up environment-variable-based configuration, including validation checks.
- Restructure the incident handling module for better organization and clearer API initialization.
Signed-off-by: katsumata <12413150+winor30@users.noreply.github.com>
* Creates a tool definition object using the provided Zod schema.
50
-
*
51
-
* This function converts a Zod schema (acting as the single source of truth) into a JSON Schema,
52
-
* extracts the relevant root object properties, and embeds them into the tool definition.
53
-
* This approach avoids duplicate schema definitions and ensures type safety and consistency.
54
-
*
55
-
* Note: The provided name is also used as the tool's name in the Model Context Protocol.
56
-
*
57
-
* @param schema - The Zod schema representing the tool's parameters.
58
-
* @param name - The name of the tool and the key used to extract the corresponding schema definition, and the tool's name in the Model Context Protocol.
59
-
* @param description - A brief description of the tool's functionality.
60
-
* @returns A tool object containing the name, description, and input JSON Schema.
* Creates a tool definition object using the provided Zod schema.
25
+
*
26
+
* This function converts a Zod schema (acting as the single source of truth) into a JSON Schema,
27
+
* extracts the relevant root object properties, and embeds them into the tool definition.
28
+
* This approach avoids duplicate schema definitions and ensures type safety and consistency.
29
+
*
30
+
* Note: The provided name is also used as the tool's name in the Model Context Protocol.
31
+
*
32
+
* @param schema - The Zod schema representing the tool's parameters.
33
+
* @param name - The name of the tool and the key used to extract the corresponding schema definition, and the tool's name in the Model Context Protocol.
34
+
* @param description - A brief description of the tool's functionality.
35
+
* @returns A tool object containing the name, description, and input JSON Schema.
0 commit comments