Convert To Json

by tonicco.huggingface.tonic/convert-to-json

  • Remote endpoint
  • 2 tools
  • MIT

Tools

  • Convert_to_Json_text_to_json Convert plain text to structured JSON using Osmosis Structure model. This function takes unstructured text and optionally a JSON schema, then uses the Osmosis Structure model to convert it into well-formatted JSON. The output will follow the provided schema if one is given, otherwise it will create a logical structure based on the input text. Returns: A JSON string containing the structured data, or an error message if something went wrong., , >>> input_text = "The conference will be held on June 10-12, 2024 at the Grand Hotel.", "object", "properties": {"event_start_date": {"type": "string", "format": "date"}}}', >>> result = text_to_json(input_text, schema), >>> print(result), {, "2024-06-10", }
  • Convert_to_Json_text_to_json_ Convert plain text to structured JSON using Osmosis Structure model. This function takes unstructured text and optionally a JSON schema, then uses the Osmosis Structure model to convert it into well-formatted JSON. The output will follow the provided schema if one is given, otherwise it will create a logical structure based on the input text. Returns: A JSON string containing the structured data, or an error message if something went wrong., , >>> input_text = "The conference will be held on June 10-12, 2024 at the Grand Hotel.", "object", "properties": {"event_start_date": {"type": "string", "format": "date"}}}', >>> result = text_to_json(input_text, schema), >>> print(result), {, "2024-06-10", }

As the server's own listing gives them. We never call a tool.