happynood commited on
Commit
bd2c573
·
verified ·
1 Parent(s): 85e599a

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. schemas/tool_schemas.json +265 -0
schemas/tool_schemas.json CHANGED
@@ -715,5 +715,270 @@
715
  "title": "write_queryArguments",
716
  "type": "object"
717
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718
  }
719
  ]
 
715
  "title": "write_queryArguments",
716
  "type": "object"
717
  }
718
+ },
719
+ {
720
+ "tier": "memory",
721
+ "name": "create_entities",
722
+ "description": "Create multiple new entities in the knowledge graph",
723
+ "input_schema": {
724
+ "$schema": "http://json-schema.org/draft-07/schema#",
725
+ "type": "object",
726
+ "properties": {
727
+ "entities": {
728
+ "type": "array",
729
+ "items": {
730
+ "type": "object",
731
+ "properties": {
732
+ "name": {
733
+ "type": "string",
734
+ "description": "The name of the entity"
735
+ },
736
+ "entityType": {
737
+ "type": "string",
738
+ "description": "The type of the entity"
739
+ },
740
+ "observations": {
741
+ "type": "array",
742
+ "items": {
743
+ "type": "string"
744
+ },
745
+ "description": "An array of observation contents associated with the entity"
746
+ }
747
+ },
748
+ "required": [
749
+ "name",
750
+ "entityType",
751
+ "observations"
752
+ ]
753
+ }
754
+ }
755
+ },
756
+ "required": [
757
+ "entities"
758
+ ]
759
+ }
760
+ },
761
+ {
762
+ "tier": "memory",
763
+ "name": "create_relations",
764
+ "description": "Create multiple new relations between entities in the knowledge graph. Relations should be in active voice",
765
+ "input_schema": {
766
+ "$schema": "http://json-schema.org/draft-07/schema#",
767
+ "type": "object",
768
+ "properties": {
769
+ "relations": {
770
+ "type": "array",
771
+ "items": {
772
+ "type": "object",
773
+ "properties": {
774
+ "from": {
775
+ "type": "string",
776
+ "description": "The name of the entity where the relation starts"
777
+ },
778
+ "to": {
779
+ "type": "string",
780
+ "description": "The name of the entity where the relation ends"
781
+ },
782
+ "relationType": {
783
+ "type": "string",
784
+ "description": "The type of the relation"
785
+ }
786
+ },
787
+ "required": [
788
+ "from",
789
+ "to",
790
+ "relationType"
791
+ ]
792
+ }
793
+ }
794
+ },
795
+ "required": [
796
+ "relations"
797
+ ]
798
+ }
799
+ },
800
+ {
801
+ "tier": "memory",
802
+ "name": "add_observations",
803
+ "description": "Add new observations to existing entities in the knowledge graph",
804
+ "input_schema": {
805
+ "$schema": "http://json-schema.org/draft-07/schema#",
806
+ "type": "object",
807
+ "properties": {
808
+ "observations": {
809
+ "type": "array",
810
+ "items": {
811
+ "type": "object",
812
+ "properties": {
813
+ "entityName": {
814
+ "type": "string",
815
+ "description": "The name of the entity to add the observations to"
816
+ },
817
+ "contents": {
818
+ "type": "array",
819
+ "items": {
820
+ "type": "string"
821
+ },
822
+ "description": "An array of observation contents to add"
823
+ }
824
+ },
825
+ "required": [
826
+ "entityName",
827
+ "contents"
828
+ ]
829
+ }
830
+ }
831
+ },
832
+ "required": [
833
+ "observations"
834
+ ]
835
+ }
836
+ },
837
+ {
838
+ "tier": "memory",
839
+ "name": "delete_entities",
840
+ "description": "Delete multiple entities and their associated relations from the knowledge graph",
841
+ "input_schema": {
842
+ "$schema": "http://json-schema.org/draft-07/schema#",
843
+ "type": "object",
844
+ "properties": {
845
+ "entityNames": {
846
+ "type": "array",
847
+ "items": {
848
+ "type": "string"
849
+ },
850
+ "description": "An array of entity names to delete"
851
+ }
852
+ },
853
+ "required": [
854
+ "entityNames"
855
+ ]
856
+ }
857
+ },
858
+ {
859
+ "tier": "memory",
860
+ "name": "delete_observations",
861
+ "description": "Delete specific observations from entities in the knowledge graph",
862
+ "input_schema": {
863
+ "$schema": "http://json-schema.org/draft-07/schema#",
864
+ "type": "object",
865
+ "properties": {
866
+ "deletions": {
867
+ "type": "array",
868
+ "items": {
869
+ "type": "object",
870
+ "properties": {
871
+ "entityName": {
872
+ "type": "string",
873
+ "description": "The name of the entity containing the observations"
874
+ },
875
+ "observations": {
876
+ "type": "array",
877
+ "items": {
878
+ "type": "string"
879
+ },
880
+ "description": "An array of observations to delete"
881
+ }
882
+ },
883
+ "required": [
884
+ "entityName",
885
+ "observations"
886
+ ]
887
+ }
888
+ }
889
+ },
890
+ "required": [
891
+ "deletions"
892
+ ]
893
+ }
894
+ },
895
+ {
896
+ "tier": "memory",
897
+ "name": "delete_relations",
898
+ "description": "Delete multiple relations from the knowledge graph",
899
+ "input_schema": {
900
+ "$schema": "http://json-schema.org/draft-07/schema#",
901
+ "type": "object",
902
+ "properties": {
903
+ "relations": {
904
+ "type": "array",
905
+ "items": {
906
+ "type": "object",
907
+ "properties": {
908
+ "from": {
909
+ "type": "string",
910
+ "description": "The name of the entity where the relation starts"
911
+ },
912
+ "to": {
913
+ "type": "string",
914
+ "description": "The name of the entity where the relation ends"
915
+ },
916
+ "relationType": {
917
+ "type": "string",
918
+ "description": "The type of the relation"
919
+ }
920
+ },
921
+ "required": [
922
+ "from",
923
+ "to",
924
+ "relationType"
925
+ ]
926
+ },
927
+ "description": "An array of relations to delete"
928
+ }
929
+ },
930
+ "required": [
931
+ "relations"
932
+ ]
933
+ }
934
+ },
935
+ {
936
+ "tier": "memory",
937
+ "name": "read_graph",
938
+ "description": "Read the entire knowledge graph",
939
+ "input_schema": {
940
+ "$schema": "http://json-schema.org/draft-07/schema#",
941
+ "type": "object",
942
+ "properties": {}
943
+ }
944
+ },
945
+ {
946
+ "tier": "memory",
947
+ "name": "search_nodes",
948
+ "description": "Search for nodes in the knowledge graph based on a query",
949
+ "input_schema": {
950
+ "$schema": "http://json-schema.org/draft-07/schema#",
951
+ "type": "object",
952
+ "properties": {
953
+ "query": {
954
+ "type": "string",
955
+ "description": "The search query to match against entity names, types, and observation content"
956
+ }
957
+ },
958
+ "required": [
959
+ "query"
960
+ ]
961
+ }
962
+ },
963
+ {
964
+ "tier": "memory",
965
+ "name": "open_nodes",
966
+ "description": "Open specific nodes in the knowledge graph by their names",
967
+ "input_schema": {
968
+ "$schema": "http://json-schema.org/draft-07/schema#",
969
+ "type": "object",
970
+ "properties": {
971
+ "names": {
972
+ "type": "array",
973
+ "items": {
974
+ "type": "string"
975
+ },
976
+ "description": "An array of entity names to retrieve"
977
+ }
978
+ },
979
+ "required": [
980
+ "names"
981
+ ]
982
+ }
983
  }
984
  ]