|
{
|
|
"get_materials":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_materials",
|
|
"description": "Get the current material list",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
}
|
|
},
|
|
"get_material":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_material",
|
|
"description": "Get the material/materials which matches the given attribute value.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"attribute": {
|
|
"type": "string",
|
|
"description": "The attribute used to filter the materials."
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"description": "The attribute value which used to match the materials."
|
|
}
|
|
},
|
|
"required": ["attribute", "value"]
|
|
}
|
|
}
|
|
},
|
|
"add_material":{
|
|
"type":"function",
|
|
"function": {
|
|
"name": "add_material",
|
|
"description": "Add material to the material list.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the material."
|
|
},
|
|
"description":{
|
|
"type": "string",
|
|
"description": "The description of the material."
|
|
},
|
|
"barcode": {
|
|
"type": "number",
|
|
"description": "The barcode of the material."
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The location of the material."
|
|
},
|
|
"unit": {
|
|
"type": "string",
|
|
"description": "The unit of the material."
|
|
},
|
|
"price": {
|
|
"type": "number",
|
|
"description": "The price of the material."
|
|
}
|
|
},
|
|
"required": ["name"]
|
|
}
|
|
}
|
|
},
|
|
"update_material":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "update_material",
|
|
"description": "Update the material which matches the given attribute value.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "The id of the material to be updated."
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the material."
|
|
},
|
|
"description":{
|
|
"type": "string",
|
|
"description": "The description of the material."
|
|
},
|
|
"barcode": {
|
|
"type": "number",
|
|
"description": "The barcode of the material."
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The location of the material."
|
|
},
|
|
"unit": {
|
|
"type": "string",
|
|
"description": "The unit of the material."
|
|
},
|
|
"price": {
|
|
"type": "number",
|
|
"description": "The price of the material."
|
|
}
|
|
},
|
|
"required": ["id"]
|
|
}
|
|
}
|
|
},
|
|
"remove_material":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "remove_material",
|
|
"description": "Remove the material which matches the given material id.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "The id of the material to be removed."
|
|
}
|
|
},
|
|
"required": ["attribute", "value"]
|
|
}
|
|
}
|
|
},
|
|
"summarize_materials":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "summarize_materials",
|
|
"description": "Get the materials which matches the given location.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
}
|
|
},
|
|
"get_projects":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_projects",
|
|
"description": "Get the projects",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
}
|
|
},
|
|
"get_project":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "get_project",
|
|
"description": "Get the project which matches the given attribute value.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"attribute": {
|
|
"type": "string",
|
|
"description": "The attribute used to filter the projects."
|
|
},
|
|
"value": {
|
|
"type": "string",
|
|
"description": "The attribute value which used to match the projects."
|
|
}
|
|
},
|
|
"required": ["attribute", "value"]
|
|
}
|
|
}
|
|
},
|
|
"add_project":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "add_project",
|
|
"description": "Add project to the project list.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the project."
|
|
},
|
|
"description":{
|
|
"type": "string",
|
|
"description": "The description of the project."
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The location of the project."
|
|
},
|
|
"start_date": {
|
|
"type": "string",
|
|
"description": "The start date of the project."
|
|
},
|
|
"end_date": {
|
|
"type": "string",
|
|
"description": "The end date of the project."
|
|
},
|
|
"status":{
|
|
"type": "string",
|
|
"description": "The status of the project.",
|
|
"default": "active"
|
|
},
|
|
"assignTo":{
|
|
"type": "string",
|
|
"description": "The assignTo of the project."
|
|
}
|
|
},
|
|
"required": ["name"]
|
|
}
|
|
}
|
|
},
|
|
"update_project":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "update_project",
|
|
"description": "Update the project which matches the given attribute value.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "The id of the project to be updated."
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "The name of the project."
|
|
},
|
|
"description":{
|
|
"type": "string",
|
|
"description": "The description of the project."
|
|
},
|
|
"location": {
|
|
"type": "string",
|
|
"description": "The location of the project."
|
|
},
|
|
"start_date": {
|
|
"type": "string",
|
|
"description": "The start date of the project."
|
|
},
|
|
"end_date": {
|
|
"type": "string",
|
|
"description": "The end date of the project."
|
|
},
|
|
"status":{
|
|
"type": "string",
|
|
"description": "The status of the project."
|
|
},
|
|
"assignTo":{
|
|
"type": "string",
|
|
"description": "The assignTo of the project."
|
|
}
|
|
},
|
|
"required": ["id"]
|
|
}
|
|
}
|
|
},
|
|
"remove_project":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "remove_project",
|
|
"description": "Remove the project which matches the given project id.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "The id of the project to be removed."
|
|
}
|
|
},
|
|
"required": ["attribute", "value"]
|
|
}
|
|
}
|
|
},
|
|
"summarize_projects":{
|
|
"type": "function",
|
|
"function": {
|
|
"name": "summarize_projects",
|
|
"description": "Get the projects which matches the given location.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"required": []
|
|
}
|
|
}
|
|
}
|
|
} |