-{"kind": "text", "pdl__id": "text", "description": "Creating JSON Data", "defs": {"data": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}}, "text": [{"kind": "model", "pdl__id": "text.0.model", "spec": {"name": "str", "age": "int"}, "defs": {}, "platform": "litellm", "model": {"pdl__expr": "ollama_chat/granite3.2:2b", "pdl__result": "ollama_chat/granite3.2:2b"}, "input": {"kind": "text", "pdl__id": "text.0.model.text", "defs": {}, "text": [{"kind": "error", "pdl__id": "", "defs": {}, "program": {"kind": "read", "pdl__id": "text.0.read", "spec": {"questions": ["str"], "answers": ["obj"]}, "defs": {}, "read": {"pdl__expr": "./gen-data.yaml", "pdl__result": "./gen-data.yaml"}, "message": null, "multiline": false, "pdl__result": "source_code: \n |\n @SuppressWarnings(\"unchecked\")\n public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {\n Map<String, String> offsetMap;\n if (lastSourceOffset == null || lastSourceOffset.isEmpty()) { \n offsetMap = new HashMap<>(); \n } else {\n offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); \n }\n return offsetMap;\n }\nrepo_info: \n repo: streamsets/datacollector\n path: stagesupport/src/main/java/com/.../OffsetUtil.java\n function_name: OffsetUtil.deserializeOffsetMap\n", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239040868000, "end_nanos": 1742524239042801000, "timezone": "EDT"}, "pdl__is_leaf": true}, "msg": "Type errors during spec checking:\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: answers\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Missing required field: questions\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: source_code\n/Users/lmandel/ml4code/prompt-declaration-language/pdl-live-react/demos/../demos/error.pdl:3 - Field not allowed: repo_info", "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239045652000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}, "parameters": {"pdl__expr": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}, "pdl__result": {"timeout": null, "temperature": 0.0, "top_p": null, "n": null, "stop": null, "max_tokens": null, "presence_penalty": null, "frequency_penalty": null, "logit_bias": null, "user": null, "response_format": null, "seed": null, "tools": null, "tool_choice": null, "logprobs": null, "top_logprobs": null, "parallel_tool_calls": null, "extra_headers": null, "functions": null, "function_call": null, "base_url": null, "api_version": null, "api_key": null, "model_list": null, "mock_response": null, "custom_llm_provider": null, "max_retries": null, "stop_sequences": "\n"}}, "def": "model_output", "parser": "yaml", "pdl__timing": {"start_nanos": 1742524239043014000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": true}], "pdl__timing": {"start_nanos": 1742524239040790000, "end_nanos": 0, "timezone": "EDT"}, "pdl__is_leaf": false}
0 commit comments