Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
High-Level Summary of Changes
Added Data Inference Tool
data_infer_schema
, has been added to infer the JSON schema from a file.Updated PromptContext
PromptContext
interface and implementation have been updated to include thereadData
method for reading and parsing data files.Documentation Updates
prompt_template.d.ts
to reflect the newreadData
method, making it clear how users can access this functionality.New Script Definition
schema_tool.genai.mjs
, showcasing how to use thedata_infer_schema
tool along with specifying a file for processing.These changes make it easier for users to programmatically infer the JSON schema of any supported files (e.g., CSV, INI, JSON) directly from their code, enhancing automation and reducing manual effort.