apply_to_grounding_strategy.schema.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "apply_to_grounding_strategy_output",
  4. "type": "object",
  5. "required": ["strategy"],
  6. "properties": {
  7. "strategy": {
  8. "type": ["object", "null"],
  9. "required": ["steps"],
  10. "properties": {
  11. "steps": {
  12. "type": "array",
  13. "items": {
  14. "type": "object",
  15. "required": ["order", "apply_to"],
  16. "properties": {
  17. "order": { "type": "integer", "minimum": 1 },
  18. "apply_to": {
  19. "type": "object",
  20. "required": ["实质", "形式"],
  21. "properties": {
  22. "实质": {
  23. "type": "array",
  24. "items": {
  25. "type": "object",
  26. "required": ["category_id", "category_path", "ideal_path", "rationale"],
  27. "properties": {
  28. "category_id": { "type": "integer" },
  29. "category_path": { "type": "string", "minLength": 1 },
  30. "ideal_path": { "type": "string", "minLength": 1 },
  31. "element": { "type": ["string", "null"] },
  32. "rationale": { "type": "string", "minLength": 1 }
  33. }
  34. }
  35. },
  36. "形式": {
  37. "type": "array",
  38. "items": {
  39. "type": "object",
  40. "required": ["category_id", "category_path", "ideal_path", "rationale"],
  41. "properties": {
  42. "category_id": { "type": "integer" },
  43. "category_path": { "type": "string", "minLength": 1 },
  44. "ideal_path": { "type": "string", "minLength": 1 },
  45. "element": { "type": ["string", "null"] },
  46. "rationale": { "type": "string", "minLength": 1 }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }