adding the new fields of crewAI to GraphQL schema and queries and UI forms + some UI enhancements

This commit is contained in:
Eng. Elias
2024-03-21 00:43:28 +04:00
parent 202483f47e
commit a654f454b8
14 changed files with 180 additions and 89 deletions

View File

@@ -16,6 +16,7 @@ const typeDefs = `#graphql
tools: [AgentTool!]!
allowDelegation: Boolean!
verbose: Boolean!
memory: Boolean
image: String
missions: [Mission!]
}
@@ -31,12 +32,14 @@ const typeDefs = `#graphql
type Task {
name: String!
description: String!
expected_output: String!
agent: Agent
}
input TaskInput {
name: String!
description: String!
expected_output: String!
agent: Int
}
@@ -74,8 +77,9 @@ const typeDefs = `#graphql
goal: String!
backstory: String
tools: [AgentTool!] = []
allowDelegation: Boolean = false
verbose: Boolean = false
allowDelegation: Boolean
verbose: Boolean
memory: Boolean
): Agent!
updateAgent(
@@ -86,6 +90,7 @@ const typeDefs = `#graphql
tools: [AgentTool!]
allowDelegation: Boolean
verbose: Boolean
memory: Boolean
): Agent!
deleteAgent(id: Int!): DeleteOutput
@@ -93,7 +98,6 @@ const typeDefs = `#graphql
createMission(
name: String!
crew: [Int!] = []
tasks: [TaskInput!] = []
verbose: Boolean = false
process: MissionProcess = "SEQUENTIAL"
): Mission!