enum Status {
  TODO
  IN_PROGRESS
  DONE
}

type Todo @model(queries: { list: "listMyTodos" }) @auth(rules: [{ allow: owner }]) {
  content: String
  status: Status
}

type Mutation {
  ROUTE_NAME(
    conversationId: ID!,
    content: [AmplifyAIContentBlockInput],
    aiContext: AWSJSON,
    toolConfiguration: AmplifyAIToolConfigurationInput
  ): AmplifyAIConversationMessage
  @conversation(
    aiModel: "anthropic.claude-3-haiku-20240307-v1:0",
    systemPrompt: "You are a helpful chatbot. Answer questions to the best of your ability.",
    tools: [
      {
        name: "list_all_the_todos",
        description: "lists todos",
        modelName: "Todo",
        modelOperation: list,
      },
    ],
    auth: { strategy: owner, provider: userPools },
  )
}
